News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_NewsBot

Octoate's News - Small Device C Compiler (SDCC) 3.6.0

Started by NewsBot, 22:00, 14 July 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NewsBot

Small Device C Compiler (SDCC) 3.6.0
14 July 2016, 8:00 pm

A new version of the SDCC C compiler is available. You can use SDCC to develop for the Amstrad CPC, e.g. with using the SDCC Code::Blocks template or the programming tutorials by Mochilote or with the new CPCtelera framework. The new version contains also some features for the Z80 port, so be sure to update it. You can download it from http://sdcc.sourceforge.net.

Changes:

  • Merged upstream binutils 2.25
  • New memory management with lower overhead
  • Changed default language dialect to –std-sdcc11
  • Diagnostic for missing type specifier: No implicit int outside of C90 mode anymore
  • C11 generic selections
  • char type is now unsigned by default (old behaviour can be restored using –fsigned-char)
  • Character constants are now of type int instead of char.
  • ISO C95 and ISO C11 wide character constants
  • ISO C95 and ISO C11 wide string literals
  • Basic standard library support for wide characters: c16rtomb(), mbrtoc16(), mbsinit(), mbtowc(), mbrlen(), mbrtoc32, c32rtomb(), mbrtowc(), wcrtomb(), mblen(), wctomb()
  • Treat all ports the same in the manual (i.e. mcs51-specific stuff is now clearly described as such)
  • Reorganized interrupt handling for z80, z180, r2k, r3ka, tlcs90, gbz80 backends
  • Workaround for stm8 division hardware bug
  • ELF/DWARF support for stm8
  • Output symbol table for ELF
  • pic16 port now uses standard-compliant crt0iz that initializes static and globals to 0 by default
  • Numerous feature requests and bug fixes



© Octoate for The Amstrad CPC news portal, 2016. | Permalink | No comment | Add to del.icio.us  Post tags: 2016, c-compiler, cross-development, development, programming, sdcc

CPC-Topsites  Related posts:


Source: The Amstrad CPC news portal

---
This news item first appeared on Octoate's Blog and was aggregated through RSS for the forum.
This content has been fetched from a third-party page feed.

AMSDOS

* Using the old Amstrad Languages :D * And create my own ;)
* Incorporating the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

SRS

@ronaldo : update for cpctelera to latest sdcc ? or is it to early ?

ronaldo

Yes, @SRS , next release of CPCtelera will include SDCC 3.6.0 for sure :D

reidrac

I've been running some tests and so far I'm not sure I'll move to 3.6 until I understand some of the changes.

For example, my binary is bigger now, and I don't know why :(

EDIT: actually, optimising for speed I get a smaller binary than optimising for size :o

In this case the result is 540 bytes smaller than the same project compiled with 3.5.0 (ignoring the fact that it doesn't make sense that optimising for speed I get a smaller binary than optimising for size).

I haven't found any issue so far. I'll continue with 3.6.0 and if I found anything weird in the generated code, I can always go back to 3.5.
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel, Kitsune`s Curse, Brick Rick, Hyperdrive and The Heart of Salamanderland for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

AMSDOS

Quote from: reidrac on 13:52, 16 July 16
I've been running some tests and so far I'm not sure I'll move to 3.6 until I understand some of the changes.

For example, my binary is bigger now, and I don't know why :(

EDIT: actually, optimising for speed I get a smaller binary than optimising for size :o

In this case the result is 540 bytes smaller than the same project compiled with 3.5.0 (ignoring the fact that it doesn't make sense that optimising for speed I get a smaller binary than optimising for size).

I haven't found any issue so far. I'll continue with 3.6.0 and if I found anything weird in the generated code, I can always go back to 3.5.


It looks like someone needs to start revising this page:


SDCC vs z88dk: Comparing size and speed of the binaries generated for Amstrad CPC

Sure it's mostly a comparative between z88dk and SDCC, though at the bottom of the page it also shows the improvements SDCC goes though from v3.1.0 to v3.3.0. v3.2.0 shows the best results for speed, though v.3.3.0 improves the size of the code, with a slight drop back in performance.


EDIT: For some reason I thought I was looking at a Home Page of SDCC, but now I realise it's @Mochilote Tutorial page with other stuff on it! ???

The SDCC doesn't appear to have any comparative results between the different versions of SDCC. Information like that is extremely handy to know.
* Using the old Amstrad Languages :D * And create my own ;)
* Incorporating the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Powered by SMFPacks Menu Editor Mod