Re: Translated code & LCC Compiler
- Posted by euman at bellsouth.net Apr 22, 2002
- 397 views
Here is the smallest ctrace.out I could produce with a bug in the latest LCC compiler. April 19, 2002 version of LCC. The Author of LCC claims to have fixed a bug in LCC but it has broken Euphoria's ability to use the latest LCC version. lccbug.exw:9 valseq = value("5.81") get.e:305 input_string = string get.e:306 string_next = 1 get.e:307 get_ch() get.e:45 if sequence(input_string) then get.e:53 ch = getc(input_file) === THE END === when it checks to see if input_string is a sequence it fails..... so " if sequence( ) " seems to be a problem. Heres my test program: with trace include get.e include file.e trace(1) sequence valseq valseq = value("5.81") integer fn fn = open("ctrace.me","w") atom val if sequence(valseq) then val = valseq[2] printf(fn, "%4f", val) else puts(fn, "You have been Bugged!") -- never gets here.. end if flush(fn) close(fn) abort(0) Im looking at the source to euphoria now in hopes that I can produce a work around. I keep getting numerous errors when I compile Euphoria. Error d:\euphoria\source\final\execute.c: numerous lines Syntax error; missing semicolon before (some code but I cant say here, sorry!) Ive been unable to successfully run the debugger in LCC, it keeps crashing. Too many damn bugs in LCC and Euphoria wasnt written initially for compilation with LCC. I have an idea to write a pre-processor for the translated code now that might speed things up but I still havent finished my installer project, too much work to weed thru hunting bugs. Euman euman at bellsouth.net