speedup dev by compile C->masm source files?

Started by daydreamer, November 02, 2006, 09:44:34 AM

Previous topic - Next topic

daydreamer

pellesC, what switches?

actually its Java code that works with arrays, I have managed to compile that before as long as you do minor changes to code from Math.sin to sin
but maybe I shouldnt do that?maybe I should let Math.sin be a included in Math class and point to a SSE-fast sinfunction instead?

daydreamer

how do I make it really small exe in C ?, I have no intention in looking thru my 27.5k executable with a disasm, but surely put some empty declarations of math functions help to not include math.lib at least, I gonna put in some faster SSE trigo anyway

working on it, but I am really rusty when it comes to Cprogramming, array declarations???
325?, extra rays are used for collisiondetection, did I just run thru a window?call crushwindow


****************************************************************************/
//gonna have fast SSE trigometric functions anyway
double cos(double a){
return a;
}
double sin(double a){
return a;
}
int castlescan(int xpos,int ypos,int angle){
int adress=xpos+ypos*640;
int alpha,pixel,pixel2,red,green,blue,dist,sx,sy,angle2;
//int [] distance2=new nt[325];
//int [] window1=new int[325];//remember where rays passed thru windows
//int [] window2=new int[325];