• Lucid Dreaming - Dream Views




    Results 1 to 25 of 34

    Thread: C++ Problem

    Threaded View

    Sornaensis C++ Problem 08-13-2008, 01:18 AM
    Sornaensis Heh nvm. Had one too many... 08-13-2008, 01:23 AM
    kichu Yeah, that's what I was going... 08-13-2008, 01:25 AM
    Sornaensis New problem: void... 08-13-2008, 01:25 AM
    Ynot the GCC (including MinGW &... 08-13-2008, 02:02 AM
    Sornaensis Oh well shit. I'm not... 08-13-2008, 02:04 AM
    ninja9578 I think GNU is the standard. ... 08-13-2008, 02:07 AM
    ninja9578 Why are you using your own... 08-13-2008, 02:09 AM
    Sornaensis So I can or I can't keep the... 08-13-2008, 02:10 AM
    ninja9578 I would use OpenAL for a... 08-13-2008, 02:16 AM
    Ynot you cannot use Intel style... 08-13-2008, 02:19 AM
    ninja9578 Yes you can :P I forget how... 08-13-2008, 02:26 AM
    Ynot you're right, I just googled... 08-13-2008, 02:30 AM
    ninja9578 I find intel asm soooo much... 08-13-2008, 02:33 AM
    Ynot I like to think I'm a fairly... 08-13-2008, 02:54 AM
    ninja9578 Assembly code is INSANELY... 08-13-2008, 02:58 AM
    Sornaensis Okay, it worked, but it's... 08-13-2008, 03:00 AM
    Sornaensis Actually, it didn't work. ... 08-13-2008, 03:05 AM
    ninja9578 Must be your C++ code, asm... 08-13-2008, 03:06 AM
    Sornaensis None and no. I just put... 08-13-2008, 03:07 AM
    ninja9578 GCC accepts either asm or... 08-13-2008, 03:15 AM
    ninja9578 I see some errors in the... 08-13-2008, 03:15 AM
    Sornaensis Oh okay. Well I sure hope... 08-13-2008, 03:16 AM
    ninja9578 I think most games are... 08-13-2008, 03:19 AM
    Sornaensis Ausome, now I don't have to... 08-13-2008, 02:55 AM
    1. #16
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Quote Originally Posted by Ynot View Post
      does DIY assembly *really* make that much of a difference?
      Assembly code is INSANELY fast. It also has a better memory footprint. I've never had a compiler make better asm than me (for small routines obviously.) Compilers are very liberal with the stack (liveliness analysis isn't very good), when I do something in asm I try to use the stack as little as possible, that usually means moving parts of the code around, which compilers have a hard time doing.

      I do graphics and when doing extensions for OpenGL or shaders, you have to use assembly because C just isn't fast enough, even with the 3 pass optimizer turned on.
      Last edited by ninja9578; 08-13-2008 at 03:02 AM.

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •