Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-17 Thread Peter Van Epp
On Wed, Mar 17, 2010 at 10:29:37AM +0100, Maarten Brock wrote: > Peter, > > >> Yes, stack-auto puts the sloc's on stack too. And you > >> cannot move slocs to any other memory, because then SDCC > >> would need sloc's to access those sloc's. > >> > > Does that then imply a severe limit on argument

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-17 Thread Maarten Brock
Peter, >> Yes, stack-auto puts the sloc's on stack too. And you >> cannot move slocs to any other memory, because then SDCC >> would need sloc's to access those sloc's. >> > Does that then imply a severe limit on arguments to functions? Using > both --model-large and --stack-auto makes the failing

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-17 Thread Mark Swayne
>> >>> The overflow in DSEG is all >>> sloc variables and I don't know how to move those (thats what >>> stack-auto >>> is supposed to do I think?) out of the internal ram. >> >> Yes, stack-auto puts the sloc's on stack too. And you >> cannot move slocs to any other memory, because then SDCC >>

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-16 Thread Peter Van Epp
On Tue, Mar 16, 2010 at 11:23:35PM +0100, Maarten Brock wrote: > Peter, > > > The overflow in DSEG is all > > sloc variables and I don't know how to move those (thats what stack-auto > > is supposed to do I think?) out of the internal ram. > > Yes, stack-auto puts the sloc's on stack too. And yo

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-16 Thread Maarten Brock
Peter, > The overflow in DSEG is all > sloc variables and I don't know how to move those (thats what stack-auto > is supposed to do I think?) out of the internal ram. Yes, stack-auto puts the sloc's on stack too. And you cannot move slocs to any other memory, because then SDCC would need sloc'

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-16 Thread Peter Van Epp
Maarten: Thanks for the reply! On Tue, Mar 16, 2010 at 09:18:40AM +0100, Maarten Brock wrote: > Peter, > > > I'm compiling stuff for the Wiznet W7100 8051 varient and hit the > > dreaded "can't allocate DSEG" error. A search through the forum indicates > > that --stack-auto and/or lar

Re: [Sdcc-user] A question on 8051 --stack-auto

2010-03-16 Thread Maarten Brock
Peter, > I'm compiling stuff for the Wiznet W7100 8051 varient and hit the > dreaded "can't allocate DSEG" error. A search through the forum indicates > that --stack-auto and/or large model may fix this. Large model alone didn't > seem to so I rebuilt from source (vi Cygwin) from a recent snap a

[Sdcc-user] A question on 8051 --stack-auto

2010-03-15 Thread Peter Van Epp
I'm compiling stuff for the Wiznet W7100 8051 varient and hit the dreaded "can't allocate DSEG" error. A search through the forum indicates that --stack-auto and/or large model may fix this. Large model alone didn't seem to so I rebuilt from source (vi Cygwin) from a recent snap and modif