[Gllug] data segment vs stack

Rich Walker rw at shadow.org.uk
Wed Feb 15 15:00:29 UTC 2006


Nix <nix at esperi.org.uk> writes:

> On Wed, 15 Feb 2006, Rich Walker spake:
>> also, in any interesting environment, you can expect that there are
>> functions you can't call from main.
>
> Really? Like what?!
>
> (Perhaps for values of `interesting' equal to `freestanding'.)

That's the *only* definition of interesting for C, isn't it?

>
>> mind you, in any interesting environment, you're using C because it
>> generates the assembler you want...
>
> True enough :)

I was quite intrigued by a feature of SDCC: you can add local rules to
the peephole optimiser if you want to exploit some ... weirdness of the
target CPU or environment. Not tried it yet, though...

cheers, Rich. 

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list