B
Bartc
MisterE said:What I am trying to do is embed encrypted machine code into the source
file, then during run-time the program decrypts its own functions and runs
them. Currently its all done in assembly but I would like to move to C as
much as possible. Its seems I can indeed simply cast as unsigned char and
read the source code, so the answer is yes. I will try copying that data
to memory and trying to execute later.
If you're encrypting then you've got a headstart using ARM..
If that uses fixed size instructions then some of the comments here don't
apply and you should be able to step through instructions more easily.
Most likely you have a C compiler that can link to assembly routines so I
don't foresee many problems, and it looks like you know what you are doing.