hp@vmars.tuwien.ac.at (Peter Holzer) (01/18/91)
Hi, Minixers, earlier this week I posted that CvW's c386 doesn't compile correctly with bcc and suspected a bug in bcc. Bruce Evans found the bug, but NOT in bcc, but in c386. The problem was that c386 assumes that char is signed (as in most compilers), but bcc uses unsigned chars. Changing a line ``char reg'' to ``int reg'' in expr.h solves the problem. Now that c386 seems to be working correctly, the only problem that remains, is, that c386 produces output for the sun assemler and and not for Bruce's as or gas. Is anybody working on this problem (Christoph -- now that you are buying a 386) ? If not, I will do it. Regards, Peter. -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technical University Vienna | as evolution | | | | | Dept. for Real-Time Systems | in action! | | __/ | hp@vmars.tuwien.ac.at | Tony Rand |
HBO043%DJUKFA11@pucc.princeton.edu (Christoph van Wuellen) (01/21/91)
1.) the 'char reg' ''bug'' has been reported to me by bruce long ago and is fixed. I replaced it by short, but I do not mind replacing it by 'int' The story is that I wanted to check how much memory can be saved using such dirty tricks and I found that it is very little, since most of the memory are really pointers. 2.) The assembler output is not Sun-specific. With two #defines (concerning the smov/movs opcode and the semantics of the .align directive), the output is suitable for the GAS assembler as well. C.v.W.
hp@vmars.tuwien.ac.at (Peter Holzer) (01/22/91)
HBO043%DJUKFA11@pucc.princeton.edu (Christoph van Wuellen) writes: >2.) The assembler output is not Sun-specific. With two #defines > (concerning the smov/movs opcode and the semantics of the .align > directive), the output is suitable for the GAS assembler as well. I have been told so already by Glenn Geers. I naively assumed that gas would use Intel style for an Intel processor. -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technical University Vienna | as evolution | | | | | Dept. for Real-Time Systems | in action! | | __/ | hp@vmars.tuwien.ac.at | Tony Rand |