Re: [Sdcc-user] Old style C declaration error

2009-08-03 Thread Erik Petrich
On Mon, 3 Aug 2009, roelof 't Hooft wrote: > Hi guys, > > This is driving me nuts, I have been searching in all the > obvious places for information on this but still can not > find what is wrong : > > utilities.h:15: error 7: Old style C declaration. IGNORED 'Delay' > utilities.h:15: error 141

Re: [Sdcc-user] Why SVN repository can not be accessed ?

2011-01-29 Thread Erik Petrich
On Sun, 30 Jan 2011, Bin Shi wrote: http://sdcc.svn.sourceforge.net/viewvc/sdcc/trunk/sdcc/   seems a bad link. There has been an attack on several of SourceForge's servers and so they have taken some services temporarily offline (including ViewVC noted in the link above). Another side e

Re: [Sdcc-user] overflow in supposed to be unsigned long

2011-05-03 Thread Erik Petrich
On Wed, 4 May 2011, stof...@skulp.net wrote: > Hi, I have to transmit an unsigned long as four bytes, so I split them up > and join them again, but with the folowing example code, I get overflow at > long_counter>32767 - can any of you give me a clue how to do it right? > // split long_co

Re: [Sdcc-user] overflow in supposed to be unsigned long

2011-05-04 Thread Erik Petrich
On Thu, 5 May 2011, Kristoffer Ek wrote: > > On 4.5.2011, at 6:20, Erik Petrich wrote: > >> long_counter = (char_counter[0] | (char_counter[1] << 8)) | >> ((unsigned long)(char_counter[2] | (char_counter[3] << 8)) << 16); > > > This overfl

Re: [Sdcc-user] overflow in supposed to be unsigned long

2011-05-04 Thread Erik Petrich
On Wed, 4 May 2011, Kevin Bailey wrote: On Wed, May 4, 2011 at 7:31 PM, Erik Petrich wrote:   long_counter = (unsigned int)(char_counter[0] | (char_counter[1] << 8)) |      ((unsigned long)(char_counter[2] | (char_counter[3] << 8)) << 16); I hope the first (unsign

Re: [Sdcc-user] sdcc 3.1.0 release

2011-11-04 Thread Erik Petrich
On Fri, 4 Nov 2011, Borut Razem wrote: > Dear sdcc developers, > > are we ready for the sdcc 3.1.0 RC1 planned for tomorrow? > > Borut I'm done with my pre-release bug stomping (unless, of course, something turns up in the release candidates that I've broken). Erik -

Re: [Sdcc-user] SDCC bug: Optimizer breaks the code

2012-01-19 Thread Erik Petrich
On Thu, 19 Jan 2012, Butuza Tamas wrote: > Dear SDCC developers, > > I found a bug when I tried to compile a code for pic16F1938. (14 bit > enhanced core) > > The problem is: The optimizer breaks the code. Makes part of the code > unreachable. > Error message is: > test.c:51: warning 110: cond

Re: [Sdcc-user] Code generated for small loop

2013-01-18 Thread Erik Petrich
On Fri, 18 Jan 2013, Vincent Pelletier wrote: > Hi. > > I'm looking at asm generated for the following loop (8051, a CYCFX2LP > actually) with sdcc 3.1.0#7066: > > __sbit __at 0x98+1 TI; > void main() { > while (!TI); > TI = 0; > } > > I get this: > > 00101$: > jbc _TI,00115$ >

Re: [Sdcc-user] using a #define to set a register

2013-02-08 Thread Erik Petrich
On Fri, 8 Feb 2013, roelof 't Hooft wrote: > Hi guys, > > I am using a #define to do a calculation during compile > time and load the result in an (8 bit) uart register so > that I can set the baudrate. > > I am using the following in a header file : > > #define crystal 11059200 > #define bd4800

Re: [Sdcc-user] float <-> int cast

2013-02-19 Thread Erik Petrich
On Mon, 18 Feb 2013, Daniel Michalik wrote: > When comparing the asm outputs I see that the first example does not call > ___fs2uint, why does it not need to do this to cast the value of x? > void main(void) { > float x = 6116.0; > debug = x; > //debug is 6116. > } > unsigned

Re: [Sdcc-user] Debugging under Eclipse

2013-08-06 Thread Erik Petrich
On Tue, 6 Aug 2013, Stefan Falk wrote: Hey guys, it's me again!   Trying to get rid of the need of Keil I am trying to be able to debug a program that was compiled under the SDCC.   The program runs on a eval-board which communicates with a server.  I can communicate with this server by bridgei

Re: [Sdcc-user] Debugging under Eclipse

2013-08-06 Thread Erik Petrich
On Tue, 6 Aug 2013, Erik Petrich wrote: > There used to be a link on the SDCC web page that described the .cdb file > format that has debugging information, including the line/address > relationships. I'm not sure what happened to it, but I'll tell you the > part you n

Re: [Sdcc-user] An Error While Trying Latest SDCC

2013-12-19 Thread Erik Petrich
On Fri, 20 Dec 2013, Ben Shi wrote: > And the for.c is in the standard regression test of SDCC > > http://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc/src/regression/for. > c > > sdcc for.c -mmcs51 > for.asm:175: Error: missing or improper operators, terminators, or > delimiters > for.asm:

Re: [Sdcc-user] About the PIC14 port

2014-01-20 Thread Erik Petrich
On Tue, 21 Jan 2014, Ben Shi wrote: > Hello, > > According to Microchip's website, > http://www.microchip.com/pagehandler/en-us/products/picmicrocontrollers, > 8-bit PIC has 4 serials, pic-10, pic12, pic16, pic18. > > So what is the pic14 port in SDCC ? > > Quite strange about that. > > Ben

Re: [Sdcc-user] Use of SDCC assembler's macros

2014-02-12 Thread Erik Petrich
On Thu, 13 Feb 2014, Jacques Pelletier wrote: > Hi, > > I'm trying to use the macros (.macro/.endm) in the SDCC assembler for > the Z80. However, it doesn't seem to work, and neither the latest > version of ASZ80 (5.06). > > For both, the macro is not expanded and give the same main.lst > > Here

Re: [Sdcc-user] r/w order for STM8 16b registers (Maarten Brock)

2014-04-19 Thread Erik Petrich
On Fri, 18 Apr 2014, Georg Icking-Konert wrote: > Hello Maarten, > > so far I observed it only for the ADC result register (ADC_DR) for read, > and timer 3 compare register (TIM3_CCR) for write. The way I realized > was simple: the ADC the result was skewed, and the TIM3 period was > wrong. How

Re: [Sdcc-user] stm8 sdas : variable problem

2014-09-05 Thread Erik Petrich
On Fri, 5 Sep 2014, r...@remi.lu wrote: > Hello > > SDCC : stm8 3.4.1 #9068 (Sep 5 2014) (Linux) > > I dont see the difference between this ( A and B ) : > > I have _lcdchar declared by : > > .area OSEG > _varOne: > .ds 1 > _lcdchar: > .db 1 > > .area CSEG > > . > .which seems not working

Re: [Sdcc-user] SDCC port of STM8 Standard Peripheral Library

2015-01-24 Thread Erik Petrich
On Thu, 22 Jan 2015, Philipp Klaus Krause wrote: > On 21.01.2015 19:36, Georg Icking-Konert wrote: >> >> 1) how do I declare and implement the trap handler? According >> to http://sourceforge.net/p/sdcc/patches/224/ the keyword "__trap? is >> available via patch (2014-02-22). Is this already par

Re: [Sdcc-user] SDCC port of STM8 Standard Peripheral Library

2015-01-26 Thread Erik Petrich
On Mon, 26 Jan 2015, Georg Icking-Konert wrote: On Thu, 22 Jan 2015, Philipp Klaus Krause wrote: On 21.01.2015 19:36, Georg Icking-Konert wrote: 1) how do I declare and implement the trap handler? According to http://sourceforge.net/p/sdcc/patches/224/ the keyword "__trap? is available v

Re: [Sdcc-user] SDCC preprocessor issue

2015-01-26 Thread Erik Petrich
On Mon, 26 Jan 2015, Georg Icking-Konert wrote: hello all,   as mentioned elsewhere I am trying to port the STM8-SPL library by STM to SDCC. Currently I got stuck at a seemingly simple problem. Here’s the technical background: 1) my target is to modify only the common headers, not the projec

Re: [Sdcc-user] SDCC preprocessor issue

2015-01-30 Thread Erik Petrich
On Fri, 30 Jan 2015, Georg Icking-Konert wrote: hello all, thanks a lot for your feedback! As for your mails see my comments below You forgot the option to modify SDCC so it accepts the __interrupt keyword either before or after the function :) w I figured that is not really an o

Re: [Sdcc-user] SDCC preprocessor issue

2015-02-08 Thread Erik Petrich
On Sat, 7 Feb 2015, Georg Icking-Konert wrote: > hi Maarten, hi Erik, > > thanks a lot by your feedback! Below I got 2 contradicting opinions: if I > understand Erik right, there is no easy fix to this problem and I should > just skip the declaration in the interrupt header file (like for > Rai

Re: [Sdcc-user] z80 binary sizes increasing by 25%

2016-07-30 Thread Erik Petrich
On Sat, 30 Jul 2016, alvin albrecht wrote: Sometime after #9676 and up to and including #9682,  I am seeing an increase in z80 binary sizes of 25% in some compiles.  It seems to be connected to increase spill to the stack and higher use of index registers in accessing stack variables.  I wil

Re: [Sdcc-user] z80 binary sizes increasing by 25%

2016-07-30 Thread Erik Petrich
On Sat, 30 Jul 2016, Philipp Klaus Krause wrote: > On 30.07.2016 10:02, Erik Petrich wrote: >> >> >> On Sat, 30 Jul 2016, alvin albrecht wrote: >> >>> >>> >>> Sometime after #9676 and up to and including #9682, I am seeing an >>>

Re: [Sdcc-user] Can't link a simple example using PIC16 with SDCC : ASlink no definition of area errors

2016-12-15 Thread Erik Petrich
On Fri, 16 Dec 2016, Délisson Gonçalves wrote: I'm currently trying to use SDCC to generate an Intel Hex file for a PIC16 device (pic18f452). I'm using a Makefile and multiple source files, to be compiled separately and linked at the end. This is my Makefile setup: CFLAGS=--std-c99 --use-non-f

Re: [Sdcc-user] OS X change preprocessor

2017-07-01 Thread Erik Petrich
On Fri, 30 Jun 2017, Maxwell Leiter via Sdcc-user wrote: Hi,On OS X, Apple has decided to symlink `gcc` to `clang` (and all related tools to their clang equivalents). So, I need to use `gcc-7` specifically to use `gcc`. Is there a way to pass options to sdcc to use `gcc-7` instead of `gcc`? Sp

Re: [Sdcc-user] How to deal bytewise with 24-bit symbols in asxxxx?

2018-03-31 Thread Erik Petrich
On Thu, 29 Mar 2018, Philipp Klaus Krause wrote: Full support for function pointers would need: 1) A way to get individual bytes of 24-bit symbols 2) A way to get the upper 16 bits of 24-bit symbols Philipp If that is true, then the ds390 target is totally broken and the huge model for mcs5

Re: [Sdcc-user] Anyone using --oldralloc when compiling for z80, z180, r2k, r3ka or ez80_z80?

2019-06-17 Thread Erik Petrich
On Sat, 15 Jun 2019, Philipp Klaus Krause wrote: Is anyone still using the old register allocator for a z80-related backend? If not, we could just remove it. Philipp I believe the 8bitworkshop IDE, which integrates an editor, several toolchains (including SDCC), and several emulators into

[Sdcc-user] SDCC 4.1.0 release candidate 1

2021-02-27 Thread Erik Petrich
The first release candidate (RC1) for SDCC 4.1.0 is available in our SourceForge File release system: https://sourceforge.net/projects/sdcc/files/ In addition to the source package, binaries are available for 32- and 64-bit Windows, 64-bit macOS, and x86_64 GNU/Linux. If you have time, please ver

[Sdcc-user] SDCC 4.1.0 release

2021-03-07 Thread Erik Petrich
The official release for SDCC 4.1.0 is available in our SourceForge File release system: https://sourceforge.net/projects/sdcc/files/ In addition to the source package, binaries are available for 32- and 64-bit Windows, 64-bit macOS, and x86_64 GNU/Linux. In addition to various bug fixes, notable

Re: [Sdcc-user] bug

2006-12-11 Thread Erik Petrich
On Mon, 11 Dec 2006, Greg Mann wrote: > I am beyond myself tring to find the problem with the attached code. > It is giving me a error on a ";". I have been able to get this code > to run on other demo compiler. If anyone could find the problem it > would make me very happy. > > Greg Man

Re: [Sdcc-user] Pointer Increment - Is it a bug?

2007-01-03 Thread Erik Petrich
On Thu, 4 Jan 2007, Mr.Cashe wrote: > But I have found this draft: > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf > > Page 59, $6.3.2.3.1 says: "A pointer to void may be converted to or from a > pointer to any incomplete or object type. A pointer to any incomplete or > object typ

Re: [Sdcc-user] passing pointer of struct to function

2007-04-14 Thread Erik Petrich
On Sat, 14 Apr 2007, Dheya Ghazi Mustafa wrote: > Hi, > I am trying to pass a pointer of struct to function. > I received the following error. > > C:/plansw_006_doc/CoordinateMapper.c:59: > error 52: Actual Argument type different from declaration 1 from type 'struct > piccolodatastruct generi