From: Gary M. <ga...@al...> - 2004-06-26 22:25:58
|
Maarten Brock wrote: > > Gary, > > First off, this is no struct init, but an array init. I won't hold it against you > though. > > Second, with the bigger program you probably changed the memory > model to large as well. And in that case a whole different init routine is > used. In small memory model essentially the code you wrote near the > bottom is used for the init. > > Now before you enter the bug report, you should check the bug is still > there in v2.4.1. And I'm currently working on a fix for a similar but not > quite identical bug. It's about initialisation for arrays of unspecified > length at the end of a struct. > > Greets, > Maarten Hi Maarten, yes you are right, this is an array init. I do have struct inits elsewhere (which was making me nervous), but I have used the "code" keyword and they are being initialised without problem. I have now upgraded to :- SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.3.8 (Feb 19 2004) (MINGW32) This is the latest Windows package with installer version. I'm not familiar with what to do with the snapshots. The same problem exists. I will try to create a simple testcase and then upload it. Unfortunately some other code has now stopped working and I am trying to track this down. regards... --Gary |