From: Erik P. <epe...@iv...> - 2012-11-22 05:39:25
|
On Tue, 20 Nov 2012, Philipp Klaus Krause wrote: > Am 20.11.2012 08:14, schrieb Erik Petrich: >> >> I've been working on long long literal constants on and off. I have a >> fairly large edit of SDCCval.c that I haven't checked in yet because it >> breaks the regression tests badly and I haven't yet been able to find the >> cause. >> >> Erik > > Just out of curiosity: What's your approach? Storing both a 64-bit > integer and a double for every literal value? Is the diff available > somewhere? > > Philipp I've just extended the const_val union to include a 64-bit integer type. This part is already checked in and is consistent with what sdcc has been doing for literal values. A literal value is stored more or less as its type would indicate. (The exceptions are char and float: char is stored as an int, float is stored as a double.) I don't see the benefit of storing both an integer and double for literal values. Due to the holiday here I have a few extra days that I can work on this this week; I'll get something checked in soon. Erik |