Re: C IDE Recommendations
- From: Jonathan Pritchard <jonpritchard@xxxxxxx>
- Date: Sun, 03 Sep 2006 13:07:23 +0100
Flash Gordon wrote:
Keith Thompson wrote:Jonathan Pritchard <jonpritchard@xxxxxxx> writes:Keith Thompson wrote:[...]Jonathan Pritchard <jonpritchard@xxxxxxx> writes:Thanks, I appreciate it. I don't want to be learning the wrong ways toKeith, which standard do you try and adhere to? Or more generallyI usually try to stick to C90, avoiding anything that would be
which should you try and adhere too, if you would like to be able to
easily port code to Linux/Windows/Mac?
incompatible with C99 (for example, using "restrict" as an
identifier). I think that's pretty much what youa have to do if you
want maximal portability. Many compilers support *parts* of C99, but
not necessarily the same parts.
do things.
Let me add that you should get advice about this from more people than
just me.
Maximum portability isn't always the most important thing. For
example, a lot of programmers might be able to assume that their code
only needs to be compilable with recent releases of gcc; others might
be able to assume POSIX support, or Windows, or whatever. Or you
might find the advantages of "//" comments more important than the
risk that a strict C90 compiler won't support them.
I agree with Keith. In addition, you might have to do things which cannot be done without extensions to C. However, when doing this you should try to keep your system specific pats isolated from the rest of the code. This will ease porting if/when you need to and generally also lead to a better program structure.
Thanks Flash and Keith
--
Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird
.
- References:
- Re: C IDE Recommendations
- From: Jonathan Pritchard
- Re: C IDE Recommendations
- From: Keith Thompson
- Re: C IDE Recommendations
- From: jacob navia
- Re: C IDE Recommendations
- From: Andrew Poelstra
- Re: C IDE Recommendations
- From: jacob navia
- Re: C IDE Recommendations
- From: Keith Thompson
- Re: C IDE Recommendations
- From: Jonathan Pritchard
- Re: C IDE Recommendations
- From: Keith Thompson
- Re: C IDE Recommendations
- From: Jonathan Pritchard
- Re: C IDE Recommendations
- From: Keith Thompson
- Re: C IDE Recommendations
- From: Flash Gordon
- Re: C IDE Recommendations
- Prev by Date: Re: new c programmer question
- Next by Date: Re: Initializing constants
- Previous by thread: Re: C IDE Recommendations
- Next by thread: Re: C IDE Recommendations
- Index(es):
Relevant Pages
|