On Thu, Nov 10, 2011 at 1:10 PM, Bob von Knobloch <b...@vknobloch.de> wrote:
> On 10/11/11 17:37, Peter Bigot wrote:
>
>> I don't believe anybody's written an update guide.  Depends on what you're
>> doing; usually people used <signal.h> to get syntactic sugar macros for
>> things like interrupt vectors.  Try removing the include, then based on the
>> resulting compiler errors due to undefined macros look at legacymsp430.h
>> and whatever that includes to see what the actual method is.
>>
> Thanks again, I see what you mean.
> One last question:
> I had (in my old projects) a compiler parameter '-mendup-at=main' which
> is now rejected by the compiler.
> The docs still mention it, but they are from 2003.
> What is the current method & are there better docs?

There are no better docs; the most updated is in the docs directory of
the mspgcc release, and only a few changes were made.   Sorry, I'm
relying on the community for documentation support.

mendup-at is just gone.  If your intent is to never leave main, you
need to put the corresponding control structure that prevents that
within main (i.e., make the body an infinite loop).  If your intent is
to have something else executed after main exits, you'd have to put it
in one of the fini sections; for that your best bet is to look at the
linker script to see what's already there.  Not trivial, but then most
cases don't need something that special.

Probably it'd be good to send questions like this to the list, so the
answers are archived and others can provide their solutions.  I'm
cc'ing it for that purpose.

Peter

>
> With hope (and many thanks),
>
> Robert
>

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to