[Sdcc-user] An Error While Trying Latest SDCC

2013-12-19 Thread Ben Shi
or.asm:175: Error: missing or improper operators, terminators, or delimiters for.asm:179: Error: missing or improper operators, terminators, or delimiters removing for.rel but if I remove the definition and the call of the "void done()", then the error is fixed. What is wrong in my oper

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

2013-12-19 Thread Ben Shi
Sorry, the error info should be sdcc for.c -mmcs51 for.asm:175: Error: missing or improper operators, terminators, or delimiters for.asm:179: Error: missing or improper operators, terminators, or delimiters removing for.rel 在2013年12月19 16时18分,"Ben Shi"写道: Hi, I am new t

[Sdcc-user] Help - About AVR Branch of SDCC

2013-12-19 Thread Ben Shi
Hello, Is the AVR branch still alive? I see some updates in the svn reposit but why it is disabled by default while building? Can it be used or not? Ben -- Rapidly troubleshoot problems before they affect your business

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

2013-12-19 Thread Ben Shi
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 I use the latest code e8919 in the svn reposit, with configure make all make install 在2013年12月19 16时22分,"Ben Shi"写道: Sorry, the error info

Re: [Sdcc-user] Help - About AVR Branch of SDCC

2013-12-20 Thread Ben Shi
Hi, guys, I am new to SDCC but have great interests in both using and developping it. The reason I asked for the AVR port is that I have interests in mcs51, avr and stm8. (they 3 and pic are the most popular ones in my country) If I want to do something, which one is suggested? Is it OK for me

[Sdcc-user] How to Convert Intel Hex to Binary

2013-12-23 Thread Ben Shi
Hello, The sdcc generates .ihx by default, but how to convert the .ihx to a binary image, which is more common? Though there are many tools on the internet, is there a built-in tool inside SDCC? Thanks. Ben Shi

[Sdcc-user] About the PIC14 port

2014-01-20 Thread Ben Shi
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] Ben Shi

2014-06-09 Thread Ben Shi
Thanks guys. I hope I can make more contribution to SDCC. :) Ben 在2014年06月08 20时50分,"Maarten Brock"写道: Hello all, In the past few months we received several good patches from Ben Shi for the stm8 target. We have now extended him developer access. Everyone say &q

Re: [Sdcc-user] STM8 code size

2014-07-02 Thread Ben Shi
Hello, Georg, 1. Currently STM8's pointers are assumed 16-bit, you can post a request in http://sourceforge.net/p/sdcc/feature-requests/ for 24-bit points support. 2. There is no code size limitation, but the stm8 port currently only emit CALL / CALLR instructions, but no CALLF. So a single ma

Re: [Sdcc-user] STM8 Standard Peripheral Library

2014-07-02 Thread Ben Shi
Georg , I have interests in your stm8 libraries, and really hope can help you after finishing my current plan on SDCC. 1. improve the ucsim-stm8 2. setup a new arm-ubuntu in the build farm 3. open bugs / feature-requests of stm8 I would like to add your library support as an item #4. Maybe y

Re: [Sdcc-user] compiling 9043: right-hand operand of comma expression has no effect

2014-07-10 Thread Ben Shi
please do not post patches in email, but submit tickets to sourceforge.net/p/sdcc/patches/ otherwise your patches might be forgotten. -- 发自我的网易邮箱手机智能版 在 2014-07-10 18:09:24,"Gudjon I. Gudjonsson" 写道: >Hi >On Thursday 10 July 2014 11:24:43 Daniel Michalik wrote: >> Dear all, >> I cannot co

[Sdcc-user] Build SDCC on ARMv7

2014-07-11 Thread Ben Shi
Hello, I built SDCC (with only the STM8 port enabled) and did regression test on an ARMv7 machine, and the build procedure cost 40 minutes, the only stm8 regression test cost 3 hours. Is there anybody has ever tried the same work, and how to improve the performance ? Or suggest a faster board

[Sdcc-user] About memset/memcpy on stm8

2014-09-10 Thread Ben Shi
I tried the following c code with command "sdcc a.c -mstm8", #include #include #include void ww(void *p, void *q, void *t) { memcpy(p, q, 10); memset(t, 0, 10); } int main(void) { char w[10]; char ww1[10]; char wq[10]; for (;;)

Re: [Sdcc-user] full assembly help

2014-09-25 Thread Ben Shi
I am not sure how your function _lcdwritechar works, but I guess you might need such kind of code, .area DATA _varOne: .ds 1 _lcdchar: .ds 1 _pointer: .ds 1 . ldw x, #_string_0 ldw _pointer, x main_loop: LDW X, #0d50 CALL delay_m CALL ledon LDW X, #0d50 CALL delay_m

Re: [Sdcc-user] full assembly help

2014-09-30 Thread Ben Shi
I have checked the generated code of indirect addressing ld/ldw instructions, and find no error. The only way remains is that make c code work first and then make a contract with your own asm code. Actually, there is no difference between c and asm while using a pointer variable. 1. It is also

Re: [Sdcc-user] full assembly help

2014-10-01 Thread Ben Shi
ing list is not dedicated to the STM8 assembly... >>> >>> >>> >>> >>> ldwX,#string_0 >>> ldw_charptr, X >>> >>> main_loop: >>> >>> LDWX, #0d50 >>> CALL delay_m >

Re: [Sdcc-user] Question about genCall

2014-10-01 Thread Ben Shi
which port? -- 发自我的网易邮箱手机智能版 在 2014-10-02 09:48:57,"陳韋任 (Wei-Ren Chen)" 写道: >Hi All, > > I have a question about genCall while tracing the codegen. The code >snippet below: > > /* make the call */ > if (IS_LITERAL (etype)) >{ > /* ??? */ >} > else >{ > /* docall();

Re: [Sdcc-user] STM8 - optimizations

2014-10-02 Thread Ben Shi
rg Ottinger: >> hmm ... >> >> is ld a, (x) on stm8 a byte wise operation??? >> >> >> >> Am 2014-10-02 um 16:10 schrieb Georg Ottinger: >>> I just figured out that >>> s >>> ld a,(x) >>> ld xl, a >>> ld a, xl >>&

Re: [Sdcc-user] STM8 ascii / extended ascii

2014-10-06 Thread Ben Shi
In my opinion, the character set a LCD supports has nothing to do with the assembler. For example, you want "abé" (not sure this is a polite word in your languge :) ) be shown on your LCD, you can do it by .db 0x61, 0x62, XX, YY XXYY presents é's code in LCD's character set. Even if the assem

Re: [Sdcc-user] STM32 code size

2014-10-07 Thread Ben Shi
Glad to hear that. In my opinion, an efficient way to optimize the code size is to substitute the standard libraries in c to in assembly, besides more deep optimizations in the code generator. So I hope more users can donate their code, just like Krzysztof Nikiel's patch #246. (http://sourcefor

Re: [Sdcc-user] STM32 code size

2014-10-07 Thread Ben Shi
Glad to hear that. In my opinion, an efficient way to optimize the code size is to substitute the standard libraries in c to in assembly, besides more deep optimizations in the code generator. So I hope more users can donate their code, just like Krzysztof Nikiel's patch #246. ( http://sourcefo

Re: [Sdcc-user] problem running Linux daily snapshot

2015-01-28 Thread Ben Shi
Unfortanately some other guys had the same trouble,maybe the best way is to build from the source code. Please refer the manual for details, I do not think it is quite complex to do. http://sourceforge.net/p/sdcc/feature-requests/432/ 在2015年01月28 20时25分,"Kio"写道: Hi, i have a pro

Re: [Sdcc-user] Issue with 32 bit assignment in interrupt?

2015-05-13 Thread Ben Shi
I am not familiar with the pic16 port, if you really think it is a bug, please create a ticket on http://sourceforge.net/p/sdcc/bugs/ 在2015年05月14 01时32分, "Kustaa Nyholm"写道: Hi, I've been tracking a wierd problem, 100% repeatable although the failures vary. I'm using: /Users/nyholku/

Re: [Sdcc-user] FOSDEM talk video

2015-06-17 Thread Ben Shi
the url of the video? -- 发自我的网易邮箱手机智能版 在 2015-06-18 01:34:08,"Philipp Klaus Krause" 写道: >At FOSDEM 2015, there was a talk on sdcc, which was recorded. >I haven't watched it yet, but noticed the video is online now (probably >has been for some time): > >Philipp > -

Re: [Sdcc-user] FOSDEM talk video

2015-06-17 Thread Ben Shi
Where can I get the PPT ? 在2015年06月18 06时13分, "Philipp Klaus Krause"写道: On 17.06.2015 19:34, Philipp Klaus Krause wrote: > At FOSDEM 2015, there was a talk on sdcc, which was recorded. > I haven't watched it yet, but noticed the video is online now (probably > has been for some time): > > P

Re: [Sdcc-user] Bug in 'removed redundant BANKSEL' ?

2016-08-29 Thread Ben Shi
Please create a bug ticket in http://sourceforge.net/p/sdcc/bugs/, and attach your patch. Thanks. 在2016年08月30 08时12分, "Raphael Neider"写道: Hi, I believe I have a fix for all issues you reported: - useless MOVFF x,x removed (in this particular situation -- there may be more situations l

Re: [Sdcc-user] SDCC 3.7.0 released

2018-03-03 Thread Ben Shi
Thank you! Philipp. Really appreciate your great work! Ben Shi 在2018年03月01 23时46分, "Philipp Klaus Krause"写道: Dear SDCC developers and users, A few days ago SDCC 3.7.0 has been released (this release announcement is a bit late due to technical issues with the mailing list