Re: [Sdcc-user] Using idata for the stack on C8051

2018-02-08 Thread Philipp Klaus Krause
Am 08.02.2018 um 14:05 schrieb Maarten Brock: >> According to the datasheet, the C8051F120 has 256 B __idata memory that >> can be used for the stack. By default, SDCC uses the the 128B __data >> memory (the lower part half of __idata) for the stack. And indeed, when >> compiling a program using --

Re: [Sdcc-user] Using idata for the stack on C8051

2018-02-08 Thread Maarten Brock
> According to the datasheet, the C8051F120 has 256 B __idata memory that > can be used for the stack. By default, SDCC uses the the 128B __data > memory (the lower part half of __idata) for the stack. And indeed, when > compiling a program using --model-large --stack-auto, it only uses > __data an

[Sdcc-user] Using idata for the stack on C8051

2018-02-08 Thread Philipp Klaus Krause
According to the datasheet, the C8051F120 has 256 B __idata memory that can be used for the stack. By default, SDCC uses the the 128B __data memory (the lower part half of __idata) for the stack. And indeed, when compiling a program using --model-large --stack-auto, it only uses __data and runs out