Re: Using gcc'isms

"David M. Cook" <> writes:

> I noticed that some of the examples on the web page use things like
> alloca() and snprintf().

Neither of which is a gcc extension.  alloca() is available on most of
the modern platforms, and it can be easily simulated on others; see
`alloca.c' that comes with many GNU programs.  snprintf() is just a
library function, with a free replacement floating on the net.

However, when coding on Linux using gcc only, gcc-isms can easily
creep in.  It's a good idea to check this by regularly compiling Gnome
on other platforms, such as Solaris with SparcWorks CC.

Hrvoje Niksic <> | Student at FER Zagreb, Croatia
Union break!

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