[comp.lang.c] Executable array

root@chief.UUCP (Lance Ellinghouse) (10/08/88)

This in response to a message sent on 10 Sep 88 <643@drilex.UUCP>
>... Only the operator can turn a program into a compiler, and only a
>compiler can create an object program.
>
>(There are, of course, holes for people with super-user-like privileges.
>Just like UNIX.)

Yes and no. In Xenix C (I'm not too sure about MS C), there is a function
you can call called execseg() that makes ANY segment into an executable
segment. All you do is load an array with data, call execseg() with the correct
information (address and size) and then call the return address.

Also ANYONE can call this function and it will work. There are no restrictions
about it's use.

The reason I'm a month behind is because I get Info-C Digest and they are a
month behind.


Lance Ellinghouse
Chief Numismatics, Inc.
UUCP: {hermix|srhqla|alphacm|ucla-an}!chief!lance
ARPA: ucla-an!hermix!chief!lance@ee.UCLA.EDU
BBS : CompuInvest BBS (818) 884-7821 24 hours 1200 baud.  XBBS Ver 7.2.1