From: SourceForge.net <no...@so...> - 2003-01-05 13:53:14
|
Bugs item #662594, was opened at 2003-01-05 13:54 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=662594&group_id=599 Category: msc51(8051) target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Suresh B Joshi (suresh_b_joshi) Assigned to: Nobody/Anonymous (nobody) Summary: Compiler bug with regbank 2 and stack-auto library Initial Comment: The SDCC compiler produces 2 serious bugs when the int-long library is recompiled with --model-small --stack-auto switches and when a int-long library function is used within an ISR using a regbank other than 0 (say using 2). The bugs are: (a) The second parameter gets pushed first and then the registers of bank 0. This should be other way. (b) The registers of bank 2 are pushed first and then regbank 0 is, but, while poping, the registers of bank 2 are poped first and then regbank 0 is poped. This should be other way. The attached source file (includes ASM file as a comment at the end of this source file) describes these bugs. - Suresh B Joshi ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=662594&group_id=599 |