D
davide galassi
Hi there,
i start to getting mad with this... The question it's easy. But i
spent the last days googling looking for an answer...but looks like no-
one ever had this problem...
I have to:
Generate under windows a binary that references the static variables
in the source code using PC-relative addressing.
I'm not writing some kind of virus or something strange but i simply
have to implement a pluggable form of shaders for a my graphic engine.
i want that given for example this C source:
float gWVP;
float VS( float in )
{
return gWVP*10;
}
the function reference the variable gWVP in a PC relative way or any
position independent way...
The output of the compilation process have to be a raw binary. so no
answers about DLLs, and other relocatable formats.
So I NEED a compiler capable to generate PC relative code under
windows...after the compilation i will transform the generated
executable into binary via OBJCOPY....
Exist such a compiler? or i have to find other ways???
I already tried with gcc and vs.
Thanks a lot
i start to getting mad with this... The question it's easy. But i
spent the last days googling looking for an answer...but looks like no-
one ever had this problem...
I have to:
Generate under windows a binary that references the static variables
in the source code using PC-relative addressing.
I'm not writing some kind of virus or something strange but i simply
have to implement a pluggable form of shaders for a my graphic engine.
i want that given for example this C source:
float gWVP;
float VS( float in )
{
return gWVP*10;
}
the function reference the variable gWVP in a PC relative way or any
position independent way...
The output of the compilation process have to be a raw binary. so no
answers about DLLs, and other relocatable formats.
So I NEED a compiler capable to generate PC relative code under
windows...after the compilation i will transform the generated
executable into binary via OBJCOPY....
Exist such a compiler? or i have to find other ways???
I already tried with gcc and vs.
Thanks a lot