Joined: 12 Jan 2014
Location: south korea
What do you mean by "flexible size"?
I would like to modify function on runtime
It may change function's size
the flexible size I mentioned is size of the function which is modifiable.
(function which may change its content)
thanks for your replying anyway~!
_________________ influenced by
rules for the direction of the mind(Descartes)
If you're only writing code ("modification" is still possible if you write the same code with different values over the top.), you could even invoke/include FASM to do the instruction encoding for you; the output would tell you the size, avoiding the need for a "compatible" disassembler.
store the function length before the function entry point
you don't even need a separate function to get the size
Exactly what I was thinking but didn't want to respond.
taeyun: Why are you interested in self-modifiable code? What are you trying to load and execute?
I'd love to see examples of dynamic recompilation, especially converting to/from ARM and I32. Who can convert ARM instructions like ldr to/from I32? I have a native ARM assembler partially working in bare metal but am not prepared to post.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum