On Dec 20, 11:45 am, karthikbalaguru <karthikbalagur...@gmail.com>
wrote:
> On Dec 19, 5:35 pm, "pproc" <hair.n...@gmail.com> wrote:
>
>
>
>
>
> > Hi
>
> > Does anyone know if there are any issues with SDCC and internal XRAM on
> > Silabs 8051 Derivatives ? I am using an Silabs 8051f330 with 512bytes of
> > XRAM.
>
> > I need a few hundred bytes of memory for a data buffer and am using the
> > large memory model. When I compile my code using the Raisonance eval-51
> > compiler (4K limited demo) my code runs without a problem.
>
> > EXECUTABLE SUMMARY:
> > -------------------
> > Total INTERNAL RAM storage requirement: 0008H.7 (8.7)
> > Total EXTERNAL RAM storage requirement: 00E9H (233)
> > Total CODE storage requirement: 104AH (4170)
> > Note: Summary does not include dynamic stack requirements
>
> > The above info is extracted from the map file for an executable that runs
> > without problems. I am already hitting the demo 4K code limit and would
> > like to be able to use SDCC to develop my application further. However,
> > while SDCC compiles my code without errors, it will not run on my target.
> > If I reduce the data buffer size below a certain limit, it runs. However,
> > its evident the data memory being used is less than half of the available
> > XRAM so there's something amiss.
>
> > Are there any specific flags other than
> > Compiler : --model-large
> > Linker : --model-large --code-loc 0x0000 --xram-loc 0x0000 --xram-size
> > 0x0200
>
> > that need to be specified for SDCC to use the internal XRAM correctly. Do
> > I need specific directives in the source file, or is this some problem
> > with the stack etc. Thanks for any pointers, suggestions and help !
>
> SDCC is good.
> Though SDCC is free, there are some differencces in the way it deals
> with assembly level and other stuffs. The manual has lot of info .
>
For example :
"jmp ." in SDCC is equivalent to 'jmp $' w.r.t 8051 assembly.
Karthik Balaguru
|