Just as described at section 3.6.
I have managed to make it work partially, for example, I can decide
the address in the RAM of variables only when they are globally
defined. But I had to find out about this by myself, because the
manual did not mention this.

The way I had to do it:
    unsigned char __data __at 0x30 myChar;

But if I place the __data __at 0x30 part before the unsigned char
part, it will work anyway. The manual does not mention about this
either.

I tried this example literally from the manual:
    __code __at (0x7ff0) char Id[5] = ”SDCC”;

But when compiling it throws:
    error 9: FATAL Compiler Internal Error in file 'glue.c' line
number '937' : !"Initialized char-arrays are not yet supported, assign
at runtime instead."
    Contact Author with source code

What I want to do now is to make a function start exactly at a certain
address in code memory but I find no way how to do it.
I tried also to create a *var = "with-text", with its data located in
RAM memory, but no luck, it is always stored somehow at code memory.

On Mon, Aug 29, 2011 at 3:10 AM, Kustaa Nyholm
<kustaa.nyh...@planmeca.com> wrote:
> On 8/29/11 00:00, "Mario" <marbar...@gmail.com> wrote:
>>Is this a currently working feature? can someone provide me some piece
>>of code where absolute addressing actually works?
>
> I'm not sure what you re talking about with 'absolute addressing',
> please show some code...
>
> br Kusti
>
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to