search for: iobbase

Displaying 3 results from an estimated 3 matches for "iobbase".

Did you mean: iobase
2004 May 11
3
[LLVMdev] ExecutionEngine/Interpreter/ExternalFunctions.cpp
.... Perhaps there's some subtle usage here I'm missing. I'd like to delete all the code from the start of the function to the end of the loop. Could someone who knows check this, please? Thanks, Reid. static FILE *getFILE(void *Ptr) { static Module *LastMod = 0; static PointerTy IOBBase = 0; static unsigned FILESize; if (LastMod != &TheInterpreter->getModule()) { // Module change or initialize? Module *M = LastMod = &TheInt...
2004 May 11
0
[LLVMdev] ExecutionEngine/Interpreter/ExternalFunctions.cpp
.... I'd like to delete > all the code from the start of the function to the end of the loop. > > Could someone who knows check this, please? > > Thanks, > > Reid. > > > static FILE *getFILE(void *Ptr) { > static Module *LastMod = 0; > static PointerTy IOBBase = 0; > static unsigned FILESize; > > if (LastMod != &TheInterpreter->getModule()) { // Module change or initialize? > Module *M = L...
2004 May 11
1
[LLVMdev] ExecutionEngine/Interpreter/ExternalFunctions.cpp
And, one more weird thing in this function. The FILESize static variable is never initialized so its likely initial value is 0 due to zero fill on many MMUs. The value is never written and used as a divisor. Why hasn't this function caused an arithmetic violation? Because the IOBBase point, also a static variable is initialized to zero and never modified and used in a conditional that thwarts the second if statement. This function amounts to a hugely expensive cast to File* on its argument! What was the _intent_ of all this? Reid. On Tue, 2004-05-11 at 18:28, Reid Spencer w...