The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Assembler With Microsoft Visual C => Topic started by: daydreamer on November 02, 2006, 09:44:34 AM

Title: speedup dev by compile C->masm source files?
Post by: daydreamer on November 02, 2006, 09:44:34 AM
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?
Title: Re: speedup dev by compile C->masm source files?
Post by: daydreamer on November 04, 2006, 12:54:46 PM
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];


Title: Re: speedup dev by compile C->masm source files?
Post by: Vortex on November 04, 2006, 01:25:58 PM
Creating small C executables (http://www.masm32.com/board/index.php?topic=166.0)
Title: Re: speedup dev by compile C->masm source files?
Post by: daydreamer on November 04, 2006, 03:23:18 PM
Quote from: Vortex on November 04, 2006, 01:25:58 PM
Creating small C executables (http://www.masm32.com/board/index.php?topic=166.0)
thanks Vortex