Re: [ATTN Matt & PeteL] Re: IL Disassembler?
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Apr 11, 2005
- 517 views
Alexander Toresson wrote: > > I can't get the IL output to work for sieve8k.exw in either of your programs > (ildis&ooeu). > > Ildis can run it correctly, but if I do: > > exu eu.ex sieve8k.exw -i > > I get the following error: > > ./main.e:170 in function name() > subscript value 283 is out of bounds, reading from a sequence of length 234 > ... called from ./main.e:511 in procedure EmitIL() > ... called from ./main.e:862 in procedure main() > ... called from ./main.e:873 > > An interesting thing is that it can output the il code of eu.ex correctly, > however. > > For ooeu, if I do: > > exu dis.ex sieve8k.exw > > I get the error: > > ./sequencef.e:172 in function read_symtab() > bad file number (-1) > ... called from dis.ex:1244 in procedure main() > ... called from dis.ex:1257 > > I get the same error if I try to disassemble eu.ex with dis.ex. > It's actually a two step process: exu eu.ex -c sieve8k.exw exu dis.ex sieve9k First, you have to shroud it such that it doesn't delete anything (that's what the -c does). Then you disassemble the *.oe file (the extension is optional when running dis.ex). Then dis.ex will output a file with a .dis extension, which is a text file with the disassembled output. If you have "with trace" on in the code, you'll be able to see the lines whenever a STARTLINE op is called. Matt Lewis