On 21.03.2013 10:27, Hynek Sladky wrote:
> Thanks for Your reply.
> 
> after some more time of testing I got finally correct result. There was
> missing option for linker, so Z80 objects were linked as if they were
> for i51. It is probably also the cause for not linking crt0 and offset
> 0x0020 in IHX output (it was really 0x0020, not 0x0200; see IHX contents
> in my previous mail) I wonder why there is no warning/error: REL files
> contain target definition so I would expect it will warn me that I am
> linking wrong object files...

Weird, I did not see this issue. Can you check, if you can reproduced
this in the nightly snapshot? If yes, please file a bug at Sourceforge
and give details on your system (which OS, etc), since it seems to work
for me.
Feel free to also file a feature request about the warning in the linker.

> 
> I understand that I have to set bank registers manually but I have no
> idea how to write application which will generate code and/or access
> variables in another banks of memory. I used C compiler from Z-world
> company many years ago and memory banking was managed automatically; I
> expected that it could work here as well (just to set memory bank sizes
> and the rest is compiler's interest).
> So the last question still remains: is there any example how to write
> application for SDCC/Z180 which uses memory banking for code and/or data?

I'll have a look at it in the next few days and try to come up with an
example for data (and also have a look at implementing some more z180
code generation optimizations I thought about recently).

Philipp


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to