From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Ralph Corderoy Message-ID: References: <65cb447dbaf5f9da39d670e4f0596c79@plan9.bell-labs.com> Subject: Re: [9fans] GUI toolkit for Plan 9 Date: Thu, 28 Feb 2002 16:35:10 +0000 Topicbox-Message-UUID: 5c30ea06-eaca-11e9-9e20-41e7f4b1d025 Hi Dave, > I heard a rumor yesterday that I'ld like dispelled if possible. It > was that the Linux kernel had to be compiled with optimization turned > on to work. AIUI that's correct. gcc only inlines requested functions if -O, or -O2, etc., has been given. If there's no `fall back' implementation of a requested-to-be-inlined function provided then you end up with an undefined reference, i.e. function foo doesn't exist anywhere. Linux puts many such `inline' functions in headers files in place of pre-processor macros. http://gcc.gnu.org/onlinedocs/gcc-3.0.3/gcc_5.html#SEC102 The norm is to -O2 the Linux kernel. Cheers, Ralph.