Am 17.08.23 um 23:27 schrieb Alan Cox:
How do you check over/underflow in C without wasting memory?
If your compiler is smart enough then for unsigned maths
r = a + b;
if (r < a)
will be optimized nicely. I've not checked if sdcc knows that and will
turn it into a carry check
> How do you check over/underflow in C without wasting memory?
If your compiler is smart enough then for unsigned maths
r = a + b;
if (r < a)
will be optimized nicely. I've not checked if sdcc knows that and will
turn it into a carry check at least for uint8 and uint16.
For sign
Hi!
Am 17.08.23 um 22:13 schrieb Michael A Hawkins:
Hello SDCC users,
I am sure this has been discussed before. So I apologize in advance for
repeating it.
With assembler, you can test for a reg/mem operation over/under flow by
checking the carry flag.
So for C, when overflows are involved, I
Hello SDCC users,
I am sure this has been discussed before. So I apologize in advance for
repeating it.
With assembler, you can test for a reg/mem operation over/under flow by
checking the carry flag.
So for C, when overflows are involved, I have always used larger
variables. For 8 bit, use 16 b
Please ignore that question. I see now how dumb it was.
Michael
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than
New to SDCC, quite honestly struggling to make things go well.
Can anyone suggest an assembler for the output.asm file produced by SDCC?
I am on Ubuntu 11.04, running SDCC 3.0.0 and my target chip at the moment is
PIC 16F84.
Thanks for any help
Michael
-
Hi,
Is code generated by SDCC compatible with assembler/linker version 4.11? A
piece of code that would produce an ihx file with assembler/linker version
1.01 produces errors with v 4.11
Shall be thankful for any help
--
Ulhas Vaidya
Hi,
Arvind Govindaraj (RBIN/EDU2) schrieb:
> I am currently working on SDCC. Can anybody please tell me where I can
> find documentation for the assembler included with SDCC?
there's a version online at:
http://svn.sourceforge.net/viewcvs.cgi/sdcc/trunk/sdcc/as/doc/asxhtm.html
(See also section
Title: Assembler documentation
Hello all,
I am currently working on SDCC. Can anybody please tell me where I can find documentation for the assembler included with SDCC?
Thanks in advance
Regards
Arvind
Using Tomcat but need to do more? Need to support web services, security?
Get stu