Machine code: Difference between revisions
Content added Content deleted
Line 1,000: | Line 1,000: | ||
First we need a way to allocate executable memory (btw. we should probably also care to flush any instruction caches, which I won't go into here); |
First we need a way to allocate executable memory (btw. we should probably also care to flush any instruction caches, which I won't go into here); |
||
This is very Smalltalk dialect specific, and probably not supported on other Smalltalks; in ST/X, we can define it as: |
This is very Smalltalk dialect specific, and probably not supported on other Smalltalks; in ST/X, where inline C-code can be compiled dynamically, we can define it as: |
||
{{works with|Smalltalk/X}} |
{{works with|Smalltalk/X}} |
||
<lang smalltalk>!ExternalBytes class methods! |
<lang smalltalk>!ExternalBytes class methods! |