|
From: Ben H. <bh...@sa...> - 2001-08-13 02:22:10
|
Hmm. From google searches, sounds like this is an old CW68k bug/limitation which has never been fixed. And 68k compiler is no longer being updated. The solution is to make the switch smaller. If there is no way to make the swtich smaller, perhaps we could comment out on 68k- #ifdef TARGET_CPU_PPC - some of the less useful rules? See: http://groups.google.com/groups?safe=off&th=be4da6712dfad0cc,5 And: http://groups.google.com/groups?safe=off&th=514a2169ed5e2fa8,3 And also: From: Ben Combee (co...@te...) Message 2 in thread Subject: Re: (followup) Weird compilation problem - reference to symbol '@560' is out of range Newsgroups: pilot.programmer, pilot.programmer.codewarrior Date: 2000/10/12 > After spending some time playing with the code, I have come to the > conclusion that the problem is caused by the huge size of the one of the > functions. It has nothing to do with the GOTOs/Labels. The preprocessed > (all #define expanded etc) version of the function is almost 1500 line of > pure code. When I commented out some of the sections in the function the > program compiled just fine. > > Anyways if the compiler could give some logical and sensible feedback then > it would be better. Basically, its a problem with the architecture of the compiler -- the function being too large isn't detected until it tries to assemble the code after its done semantic analysis, optimization, code generation, and peephole optimization. However, I still think its a bug, since it looks like the compiler should be able to substitute one of the larger offset jump instructions for the small, limited range one its using. At 8:19 PM -0700 8/11/01, Lark wrote: >I'm getting this error when trying to build any 68K target (for the release): > >Error : reference to label '@4557' is out of range >lex.yy.c line 10290 } /* end of yylex */ > >Anyone know what this means? I thought maybe our code model was too >small, but it's as large as I can get it. > >Any ideas? >-- >Lark <lar...@ya...> > >_______________________________________________ >Scribia-developers mailing list >Scr...@li... >http://lists.sourceforge.net/lists/listinfo/scribia-developers -- <http://freepages.sf.rootsweb.com/~bhines/> - My Genealogy Pages -- <http://freepages.sf.rootsweb.com/~bhines/> - My Genealogy Pages |