justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: For EEL, how did you go about learning how to generate executable code in memory? Any particular reference you got hints from?
Asked by Will (70.173.80.x) on November 30 2013, 8:17pm
Reply on November 30 2013, 9:43pm:
    If you can read and write assembly, writing code to generate it is easy. A lot of it was figured out on the fly, the hardest parts had to do with slogging through the calling conventions -- if I were to do it again I'd just use nasm for all of the assembly bits... Also, some things, like the use of VirtualProtect/mprotect(), only became an issue later on, as you didn't originally need to use VirtualProtect on win9x/2k...

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS