peter townson | 1 Sep 2011 02:41
Picon

Re: Which Z80-based processor do you use?

Phillip,

My primary interest is in the 'bog' standard Z80 and the Z180
(HD64180/HD647180).

I am also intrigued by the possibilities of the T80 but haven't gotten
there yet.

PeterT :->

On 8/31/11, Philipp Klaus Krause <pkk@...> wrote:
> Dear users of sdcc,
>
> there are many Z80-based architectures out there, and I suppose that
> some of you are writing software for them. Some variants have specific
> instructions not available in the original Z80 that could be emitted by
> sdcc to better support these Z80 variants. To decide which ones to have
> a closer look at, and maybe better support in sdcc, I'd like to know
> which you use or are interested in.
>
> Architecture:
> * Z80
> * GBZ80 (the CPU used in the Game Boy)
> * Z180
> * eZ80
> * Rabbit 2000 / 3000
> * Rabbit 3000A
> * Rabbit 4000 / 5000
> * Other (please indicate)
>
(Continue reading)

Mario | 1 Sep 2011 05:16
Picon

Re: BCF STATUS,RP0, BCF STATUS,RP1

Nobody??

On Mon, Aug 29, 2011 at 7:35 PM, Mario <marbarand@...> wrote:
> I have an issue which is recurrent, happens in all my programs
> compiled with SDCC.
> Maybe all of you have experienced this also, there are tons of
>    BCF STATUS,RP0
>    BCF STATUS,RP1
> And such repeating over and over after most of the operations between
> the W register and some RAM (memory) one.
>
> Is there a way of making SDCC optimize this a little more? I see no
> point in this. I think there is no point on that. Because of this
> my codes become huge compared to the ones I used to get with CC5X.
> Greetings.
>

------------------------------------------------------------------------------
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
Philipp Klaus Krause | 1 Sep 2011 11:40
Picon

Re: Which Z80-based processor do you use?

Am 01.09.2011 00:57, schrieb Egan Ford:
>> current maintainer of the sdcc Z80 port
> 
> Just a bit of feedback:
> 
> sdcc object files are about 1/3 the size of Aztec C (circa 1985), but
> run about 25% slower.  Are there optimization options that I missed?

The optimization options are --opt-code-size --opt-code-speed and
--max-allocs-per-node (higher values optimize more, default is 3000).

Can you give some example functions (C source and Aztec C asm output),
where sdcc generates significantly slower code than Aztec C?

Philipp

------------------------------------------------------------------------------
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
Borut Ražem | 1 Sep 2011 19:33
Picon
Gravatar

New sdcc snaphot build plarform: 64 bit Windows

Hi sdcc users and developers,

if you carefully looked to the SDCC Snapshot Build web page, you might noticed two new items: "Windows 64bit (experimental) (x86_64-w64-mingw32)" and "Windows 64bit package with installer (experimental) (x86_64-w64-mingw32-setup)".

Both contains the native 64 bit Windows compiled sdcc suite. The builds are done on Erik's cf-x86 amd64 Fedora 12 Linux machine, cross-compiled in mingw_w64 environment (libraries, header files, ...) with x86_64-w64-mingw32-gcc (GCC) 4.5.4 (prerelease). Regression test are ran on the same machine with wine64 and they all pass.

The zip packages sdcc-snapshot-x86_64-w64-mingw32-yyyymmdd-bbbb.zip are quite complete. The only remaining TODO is compilation of 64 bit readline5.dll and it's inclusion.

The setup package still needs some work:
  • I just noticed that it has to be renamed since the name is same as for 32 bit packages. The new name will probably be sdcc-yyyymmdd-bbbb-w64-setup.exe
  • Detection when trying yo install 64 bit package on 32 bit Windows
  • Proper installation in 64 bit registry and in 64 bit "Program Files". Currently it is incorrectly installed as 32 bit application in "Program Files (x86)" directory.
  • Already mentioned inclusion of 64 bit readline5.dll
Any reports of successful or unsuccessful installation & execution are welcome!

Thanks to Erik Petrich to upgrade cf-x86 to Fedora 12 (glibc 2.11 is required by brebuild mingw_w64)  and to gcc, mingw_w64 and wine teams to make this possible.

Borut
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/sdcc-user
Philipp Klaus Krause | 3 Sep 2011 11:55
Picon

Anyone using --portmode=z180?

And if yes, why?

As far as I can see this just ensures that the upper 8 bits of the
address bus are 0 whenever doing I/O, instead of undefined as in the
default --portmode=z80. Is there a use case for this?

Philipp

------------------------------------------------------------------------------
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
Philipp Klaus Krause | 3 Sep 2011 12:01
Picon

Re: Which Z80-based processor do you use?


Thanks for all the replies, everyone!

It seems most of you are using plain Z80 (as do I) in NMOS, CMOS or
softcore. I wonder if this is due to the Z80 being more common or due to
sdcc supporting this target best.
I see that some are using the Z180, so I'll have a look at improving
support for that one, probably via -mz180. Since there's not many new
instructions (mlt being the most important one) this should not be too
much effort.

Philipp
Philipp Klaus Krause | 3 Sep 2011 12:11
Picon

Undocumented Z80 instructions

Would you be interested in seeing support for some so-called
undocumented Z80 instructions in sdcc? This would be available via a
command-line switch, that would allow sdcc to generate the following:

adc a, ir
add a, ir
and a, ir
cp a, ir
inc ir
ld ir, ir'
ld ir, n
ld ir, r
ld r, ir
or a, ir
sbc a, ir
sub a, ir
xor a, ir

Where ir/ir' is iyh or iyl, and r is a, b, c, d or e, and n is an 8-bit
immediate.

For targets that support them this could result in slightly smaller and
faster code since it allows more flexible use of iy.

AFAIK most softcore implementation of the Z80 officially support them,
and they just work on most other implementations as well, even where
this is not documented.

Philipp

------------------------------------------------------------------------------
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
Guy Hutchison | 3 Sep 2011 17:01
Picon

Re: Anyone using --portmode=z180?

Unless this increases the I/O address space beyond 8 bits I don't see a need for it, upper 8 bits are ignored.

Guy

On Sep 3, 2011, at 2:55 AM, Philipp Klaus Krause <pkk@...> wrote:

> And if yes, why?
> 
> As far as I can see this just ensures that the upper 8 bits of the
> address bus are 0 whenever doing I/O, instead of undefined as in the
> default --portmode=z80. Is there a use case for this?
> 
> Philipp
> 
> ------------------------------------------------------------------------------
> 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@...
> 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
Claude Sylvain | 3 Sep 2011 17:31

Re: Anyone using --portmode=z180?


On 03/09/2011 05:55, Philipp Klaus Krause wrote:

 >
 > [Sdcc-user] Anyone using --portmode=z180?
 >
 > And if yes, why?
 >
 > As far as I can see this just ensures that the upper 8 bits of the
 > address bus are 0 whenever doing I/O, instead of undefined as in the
 > default --portmode=z80. Is there a use case for this?
 >

Hello Philipp,

- I do not use the "--portmode=z180" SDCC option.

- I only use Z80 processors, and was not aware of the SDCC
   "--portmode" option.

Claude

------------------------------------------------------------------------------
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
Claude Sylvain | 3 Sep 2011 17:46

Re: Undocumented Z80 instructions


On 03/09/2011 06:11, Philipp Klaus Krause wrote:

 >
 > Would you be interested in seeing support for some so-called
 > undocumented Z80 instructions in sdcc? This would be available via a
 > command-line switch, that would allow sdcc to generate the following:
 >
 > adc a, ir
 > add a, ir
 > and a, ir
 > cp a, ir
 > inc ir
 > ld ir, ir'
 > ld ir, n
 > ld ir, r
 > ld r, ir
 > or a, ir
 > sbc a, ir
 > sub a, ir
 > xor a, ir
 >
 > Where ir/ir' is iyh or iyl, and r is a, b, c, d or e, and n is an 8-bit
 > immediate.
 >
 > For targets that support them this could result in slightly smaller and
 > faster code since it allows more flexible use of iy.
 >
 > AFAIK most softcore implementation of the Z80 officially support them,
 > and they just work on most other implementations as well, even where
 > this is not documented.
 >

- My personal opinion is that Z80 undocumented instructions
   must not be used and supported, since no one can certify
   their behaviour.

Claude

------------------------------------------------------------------------------
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

Gmane