Extracting native code from C

John M McIntosh johnmci at smalltalkconsulting.com
Wed Mar 13 16:28:43 UTC 2002


>Below is a small C program that copies some of its machine code to
>dynamic memory and executes it.  It works on my Linux-i86.

Normally you need to indicate to the hosting OS and processor that 
this chunk of data is now instructions. This becomes very important 
where you have hardware architectures that have different cache lines 
for data and for instructions.

You should take a look at the jitter 3 stuff.

-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================



More information about the Squeak-dev mailing list