Re: do { } while(0) vs if(1) { } else (was: strange loop!!)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Vova" == Vova  <vova-ls@yandex.ru> writes:

Vova> On Monday 19 January 2004 13:48, joan@laigu.net wrote:
>> Hi,
>> is answered in the FAQ. http://www.kernelnewbies.org/faq/
>> 
>> Joan

Vova> Yes. But...  This is look like loop, but not acctualy loop. Some
Vova> compilers will try to optimize it content by expanding some
Vova> functions called in the loop (I don't know about gcc). This will
Vova> enlarge kernel size and may have some side effects

Nonsense.  The compiler wil not change the semantics.  Besides, the
"technique" is purely syntactical.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux