D
davide galassi
Hi,
I'm doing my thesis...it's about a virtual 3d device state machine
that executes already compiled binary code that represents vertex and
pixel shaders...the code it's nothing more than a function, with
parameters and global variables.
That's how it have to work:
The machine load a object code from the disk in from af a binary
string ...and that's easy but i have to know, at this poin,t in some
way what aare the parameters, the types of the parameters, the address
of the entry point to jump to that function from the main program, and
the addresses and types of the global variables to fill them before
jump.
I found that from the binary code it's not easy right? ( if it's not
imopssible ) i need a tool that at compilation time do that job and
put all the infos needed in a separate file or ( better ) at the end
of the binary file so i can read it from there.
A good idea is to have the binary file with the entry point ( code to
jump ) that start's at a fixed physical address 0x4 and have in the
first double word the address from where start reading the informatin
stored in the binary about the program stored in some readable form.
For example xml.
Thank you
Davide
I'm doing my thesis...it's about a virtual 3d device state machine
that executes already compiled binary code that represents vertex and
pixel shaders...the code it's nothing more than a function, with
parameters and global variables.
That's how it have to work:
The machine load a object code from the disk in from af a binary
string ...and that's easy but i have to know, at this poin,t in some
way what aare the parameters, the types of the parameters, the address
of the entry point to jump to that function from the main program, and
the addresses and types of the global variables to fill them before
jump.
I found that from the binary code it's not easy right? ( if it's not
imopssible ) i need a tool that at compilation time do that job and
put all the infos needed in a separate file or ( better ) at the end
of the binary file so i can read it from there.
A good idea is to have the binary file with the entry point ( code to
jump ) that start's at a fixed physical address 0x4 and have in the
first double word the address from where start reading the informatin
stored in the binary about the program stored in some readable form.
For example xml.
Thank you
Davide