Jump to content



Photo

Maths functions


  • Please log in to reply
5 replies to this topic

#1 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 10 January 2004 - 04:56 PM

Ok, so I've been compiling under VC6 for a while and I just checked it was still ok under VC7. 200KB exe! (102KB compressed). Take the recent maths functions out and it drops back to 166KB/79KB.

Am I missing an option somewhere? "Don't use sucky huge maths libraries"??

40KB for those functions is a ridiculous waste :whistle:





#2 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 10 January 2004 - 05:03 PM

Ok, so I've been compiling under VC6 for a while and I just checked it was still ok under VC7.  200KB exe! (102KB compressed). Take the recent maths functions out and it drops back to 166KB/79KB.

Am I missing an option somewhere?  "Don't use sucky huge maths libraries"??

40KB for those functions is a ridiculous waste :whistle:

Why not load them at run-time from msvcrt.dll?

#3 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 10 January 2004 - 05:11 PM

By the way, you'd love the size of my DLL-supported version. It's ~60 kb compressed. For some reason, it's eliminating 3 unreferenced libraries which it just started doing on it's own (That option has been set since I unpacked the source, but it's only just now starting to remove these references after I've built the thing 20 times with it being "normal" size). I barely even touch AutoIt's code, I added most of my stuff in a static library because both AutoIt and DLL's need to link against it. The only settings I changed were to set up the dependancy on that library. This is with VS .NET 2003, by the way.

#4 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 11 January 2004 - 12:28 PM

Ok, so I've been compiling under VC6 for a while and I just checked it was still ok under VC7.  200KB exe! (102KB compressed). Take the recent maths functions out and it drops back to 166KB/79KB.

Am I missing an option somewhere?  "Don't use sucky huge maths libraries"??

40KB for those functions is a ridiculous waste :whistle:

Why not load them at run-time from msvcrt.dll?

It's not standard on all version of windows.

#5 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 11 January 2004 - 02:00 PM

Just found a freeware replacement maths library that has most of the functions we need and add no size at all to the exe (most of the functions are in asm! as it was written specifically for doing sub 64KB demos).

It's says it's free to use (not even GPLed) but I'm also writing to the author to ask how he wants to be credited.

#6 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 11 January 2004 - 02:44 PM

Ahh, I didn't realize it wasn't standard, I only have access to Windows XP (And obviously one with VS installed on top of that).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users