Re: A89: Re: C sources


[Prev][Next][Index][Thread]

Re: A89: Re: C sources




> > > >compiling with the -fomit-frame-pointer option.
> > > What does that do, out of curiosity.
> >Make any sense?
> Yes, but i have one question, global vars are stored on the stack also, so
> if you have one huge one, it would crash, right?

On the calc global vars are stored inside the program when you program nostub,
since TI:s format has no support for the BSS section. That's why you have to
initialize them to something. I don't know if TI-GCC could do that
automatically.

And no, it wouldn't crash - the -fomit-stack-pointer compiler directive is not
dangerous, it just tells the compiler to work in a different way. If however a
crash should occur, it's normally harder to see what was in your variables
and/or where you called the function from.

> >(Gah - don't start answering questions 5 minutes before you have to go to
> >work - I'm late!)
> Sorry bout that :P

Well, I didn't miss breakfast at work, that's the important bit =)

--
 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

One of the universal rules of happiness is: always be wary of any helpful
item that weighs less than its operating manual.
        -- (Terry Pratchett, Jingo)





References: