Sdl & asm

Hey guys!
I was wondering if there any defines for nasm or fasm to use this great lib with asm?? :slight_smile:
I was going to write them but thought it was better to ask if someone already did it. Btw what do you think about using asm with sdl?? of course it affects the portability, but it can be used in some parts of code that really need to be very optimized, etc

Thanks.

http://gamescreators.sourceforge.net/ – Linux games programmers community

antonmasteR wrote:

Hey guys!
I was wondering if there any defines for nasm or fasm to use this great lib with asm?? :slight_smile:
I was going to write them but thought it was better to ask if someone already did it. Btw what do you think about using asm with sdl?? of course it affects the portability, but it can be used in some parts of code that really need to be very optimized, etc

If you want so much optimized code, do not use SDL at all. Use native API.

What, you believe, is the speed difference between an asm program and a
C program?

Many times C program is faster than asm because of compiler optimization
(if you are not a good asm programmer of course)

So, what is the need to use asm code today, except using specific
features of processors?

Even I, use Basic compiler (wow!) for microcontroller!__________________________________________________
??? Yahoo!;
??? ?? ??? ??? (spam); ?? Yahoo! Mail ??? ??? ??? ??? ??? ??? ??? ??? ???
http://mail.yahoo.gr

Hey guys!
I was wondering if there any defines for nasm or fasm to use this great lib with asm?? :slight_smile:

Yep! Take a look at src/video/SDL_stretch.c, and src/hermes

See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Btw what do you think about using asm with sdl??

Fit, the demo crew, does it (+ OpenGL) http://unixscene.kameli.net/.
They release the sourcecode of most of their demos (if not all).

The first title brought to memory is “Make it 4k”.
Guess why it uses asm :wink: