struct EXEC {
u_long pc0;
u_long gp0;
u_long t_addr;
u_long t_size;
u_long d_addr;
u_long d_size;
u_long s_addr;
u_long s_size;
u_long sp, fp , gp, base;
};
|
Members
pc0 |
Execution start address |
gp0 |
gp register initial value |
t_addr |
Starting address of text section and initialized data section |
t_size |
Size of text section and initialized data section |
d_addr |
System reserved |
d_size |
System reserved |
b_addr |
Starting address of uninitialized data section |
b_size |
Size of uninitialized data section |
s_addr |
Stack start address (user-specified) |
s_size |
Stack size (user-specified) |
sp,fp ,gp, base |
Register storage area |
Explanation
The EXEC structure is located in the upper 2K bytes of an executable
file (a file in PS-X EXE format). EXEC maintains information used
to load and execute a program.
When a program is executed, stack information is added to the members
of the EXEC structure and the structure is passed as an argument
to the Exec() function.
See Also
Exec()
|