Re: Just what makes an architecture "C Friendly"?



<fox@xxxxxxxxxxxxxxxxxxx> wrote in message
news:1149439611.900661.171760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Darin Johnson wrote:
But "C friendly" means several things. When GCC says this, I'm pretty
sure it means "friendly environment in which to implement a GCC
compiler". So you've got several meanings here:

Yes. I think the GCC definition for C practice is expressed by a
growing number of people. I do think it is a stretch for embedded
use, but it is becoming an option more often to take the library
and file system and OS from development platform to the embedded
target with the minimal effort.

I don't live in that space, but I see more and more people offering
that point of view, so I commented that I think C does mean somewhat
different things to different people. I intended to enumerate several
meanings.

There is another thread about the most unfriendly-for-C architecture
for which people actually use C. And architectures for which no
one has used C are probably those that are WAY too small for
something like GCC. If you are working with an embedded
design that has only a few words of ROM, no RAM or a few words
of RAM, no general purpose registers, non-byte address, non-power
of two bus width, no hardware error traps, no interrupts, etc. type
architecture for which there is no C compiler you probably consider
it C un-Friendly enough to not make the effort to try to use C.

And even if you are just generating a small bit of embedded code
for that environment by running Linux and GCC quite happily on a
PC you probably were not thinking of running GCC out of a dozen
words of target ROM.

Huh?

Unless I'm misunderstanding something, we're not talking about the platform
that the C compiler runs on. That's of no interest (to me). We're talking
about the target it compiles for.

As for "it is becoming an option more often to take the library and file
system and OS from development platform to the embedded
target with the minimal effort" - if you're talking about embedded PCs,
fine. Again that's of no interest to me, and I don't see how it's relevant
to this thread.

Steve
http://www.fivetrees.com


.



Relevant Pages

  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)
  • Lib X11 compile problem /Xlib.h:3573: error: syntax error before "_X_SENTINEL"
    ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (comp.os.linux.x)
  • make error compiling sysbench for MySQL
    ... checking for gcc... ... checking for C compiler default output file name... ... checking libaio.h usability... ... checking libaio.h presence... ...
    (linux.redhat)