P
paul c
Apologies if I'm sending this to the wrong group. If so I'd be grateful
if somebody could point me to the right one.
I'm using microsoft visual c++ 6.0 compiler. My code is C, I just use
the c++ compiler for easier positioning of declarations here and there.
I am putting together a small interpreter that will do a great deal of
iteration and I'd like to avoid using function pointers to my opcode
code because I don't need any machine-level stack pushing, popping,
calling and returning and these seem quite expensive compared to simple
goto's.
Can anybody advise what compile options I might use to force a jump
table when a switch statement is compiled? If I have to use a different
compiler, I will. Also, is there a disassembler or somesuch that will
let me confirm that a jump table was produced?
thanks,
pc
if somebody could point me to the right one.
I'm using microsoft visual c++ 6.0 compiler. My code is C, I just use
the c++ compiler for easier positioning of declarations here and there.
I am putting together a small interpreter that will do a great deal of
iteration and I'd like to avoid using function pointers to my opcode
code because I don't need any machine-level stack pushing, popping,
calling and returning and these seem quite expensive compared to simple
goto's.
Can anybody advise what compile options I might use to force a jump
table when a switch statement is compiled? If I have to use a different
compiler, I will. Also, is there a disassembler or somesuch that will
let me confirm that a jump table was produced?
thanks,
pc