Am 09.12.18 um 10:22 schrieb 晓锋 李 via Sdcc-user:
> Hi:
>
> 我想我遇到一个SDCC关于除法取余运算的BUG。
> I think I came across an SDCC bug about the divide operation.
>
> 测试代码如下
> Test code is as follows:
>
> void modtest2(unsigned int t)
> {
> while(t != 0){
> t % 10;
> printf("t
Hi:
我想我遇到一个SDCC关于除法取余运算的BUG。
I think I came across an SDCC bug about the divide operation.
测试代码如下
Test code is as follows:
void modtest2(unsigned int t)
{
while(t != 0){
t % 10;
printf("t = %d, mod10 = %d\r\n", t, t%10);
t = t
Please send this bug report to the SDCC bug tracker instead of informing
the users of it. The users can/will not fix it and the developers, if they
happen to see it, will forget it.
http://sourceforge.net/tracker/?group_id=599&atid=100599
Maarten
> SDCC revision 7520
>
> ;---
SDCC revision 7520
;
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.1.4 #7520 (Mar 31 2012) (MINGW32)
; This file was generated Fri Apr 06 04:20:22 2012
;
Hi,
1. How are the SFR's defined? Are you using both the "sfr" and "at"
keyword? Are you trying to initialize them in the same line where
they are defined?
2. Where does "-b CSEG = 0x" come from? SDCC no longer
automatically uses that line. It uses "-b HOME = 0x" instead.
Maarten
> M
Moving a 8051 project for EZUSB (Cypress FX2LP CY7C68013A) from SDCC version
2.3.8 to 2.7.0 encounted two linker problems:
1. wrongly counts the SFR space in the DATA memory size as a result
displayes "Insufficient space in data memory."
as\link\mcs51\lkmem.c line: 182
2. the program won't run if