![]() |
|
|
|
#1
|
|||
|
|||
|
if the destination is more than 0x7F bytes away from the instruction following your Jcc, then use the long form.
But honestly, do you think that an extra 4-bytes really matter, if you consider the greatly added simplicity of *always* using the 6-byte instruction (0F 8x)? If you start resizing instructions, then you have to make sure that *all* jumps that go beyond the resize/insertion point are also fixed. It's certainly not impossible, but seems like an overkill for what you want. Last edited by doug; 09-13-2005 at 23:37. |
|
#2
|
|||
|
|||
|
Hi Doug,
Agreed but the point is to actually make it right now.. My existing code generator works well and now I want to take it to the next level. Here are some interesting arictles on this topic: hxxp://compilers.iecc.com/comparch/article/97-05-281 hxxp://compilers.iecc.com/comparch/article/00-10-073 hxxp://compilers.iecc.com/crenshaw/ hxxp://www.pcengines.ch/tp3.htm hxxp://www.etek.chalmers.se/~e8johan/compiler/ Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculating the size in bytes of a C++ function | yaa | General Discussion | 8 | 11-07-2007 09:15 |
| opcode generator | johnq | General Discussion | 4 | 01-02-2004 07:11 |