(3b2) functions in data space
x0705
wcs at ho95e.UUCP
Wed Mar 12 16:17:07 AEST 1986
In article <622 at bentley.UUCP> kwh at bentley.UUCP (KW Heuer) writes:
>....
>The person who started this discussion was already able to create code
>in the .data space; whether it's done by the loader or at run-time by
>the program is irrelevant. The question is whether it's possible to
>_execute_ such a function. On a vax, you can. On a pdp11 with split
>I/D, you can't, because .text and .data addresses are each 16 bits,
>so an attempt to call a function from .data space will actually call
>the function at the same address in .text space. (The workaround is
>to use ld -N, so you don't have split I/D.) The remainder of this
>discussion focuses on the 3b2, where .text and .data addresses have
>separate ranges (.text normally starts at 0x80800000, .data at
>0x80880000). ^^^^
^^^^
(-: Obviously, you can't execute the data as code - the .data resides on
the 8088, while the .text is on an 8080. No wonder the floating point
was so slow!
--
# Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs
More information about the Comp.unix.wizards
mailing list