Re: gcc compiler options for K&R C code Options
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Tue, 16 Dec 2008 21:38:41 -0800
Utkado <utkado@xxxxxxxxx> writes:
Escuse me for posting this compiler specific query in this newsgroup.
I have already posted it in the gnu.gcc.help group but not received
any response hence posting this this query here in case someone can
provide the right information.
We are currently using a legacy application on solaris which contains
K&R style C code and needs to be migrated to linux platform.
My query is does gcc compiler support K&R C code ? If so what are
the
compiler options to be specifically provided for to gcc to compile
successfully ?
Much K&R code is still valid C90 or C99 code. For example, old-style
function declarations are still supported, and implicit int is still
valid in C90 (though not in C99). You might find that your code will
compile with the default settings.
gcc comes with extensive documentation. Try "info gcc" and search for
"K&R" ('s' to search, 'n' to find the next occurrence).
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- Follow-Ups:
- Re: gcc compiler options for K&R C code Options
- From: Eric Sosman
- Re: gcc compiler options for K&R C code Options
- References:
- gcc compiler options for K&R C code Options
- From: Utkado
- gcc compiler options for K&R C code Options
- Prev by Date: gcc compiler options for K&R C code Options
- Next by Date: Re: sizeof unpadded struct size
- Previous by thread: gcc compiler options for K&R C code Options
- Next by thread: Re: gcc compiler options for K&R C code Options
- Index(es):
Relevant Pages
|