S
spinoza1111
Hi, I am not a student at IUT, but I do have two questions.
Can a C programmer by means of hacking get access to the machine code
of a function? I've never used the feature by means of which a
function may be passed as its address, but it sounds like one could
use this (in real programming, don't pass functions: write a small
interpreter).
Shouldn't C be redesigned so as to make the machine code of a program
a full object, one that can be addressed and used, possibly changed? I
mean, you can mung everything else in this language. Why not be Mung
the Merciless?
int a()
{
printf("%s\n", a);
}
Strangely, given .Net's higher level orientation than C, which claims
to be a high level low level language for high level guys who like to
get down, I can actually access, if not the machine code, the byte
code in .Net. cf http://spinoza1111.wordpress.com/20...t-tool-for-executing-source-code-at-run-time/.
Can a C programmer by means of hacking get access to the machine code
of a function? I've never used the feature by means of which a
function may be passed as its address, but it sounds like one could
use this (in real programming, don't pass functions: write a small
interpreter).
Shouldn't C be redesigned so as to make the machine code of a program
a full object, one that can be addressed and used, possibly changed? I
mean, you can mung everything else in this language. Why not be Mung
the Merciless?
int a()
{
printf("%s\n", a);
}
Strangely, given .Net's higher level orientation than C, which claims
to be a high level low level language for high level guys who like to
get down, I can actually access, if not the machine code, the byte
code in .Net. cf http://spinoza1111.wordpress.com/20...t-tool-for-executing-source-code-at-run-time/.