- Joined
- Jun 20, 2001
- Location
- Vancouver, WA
I have a prime number program witten in BASIC, which I believe I have sped up to the limits of what I can do (other than using a seive... too hard to program). I was wondering if anybody here could translate my BASIC source into C or C++ (or any other language) to speed up execution time.
Also, if you could compile it with 486 or above code, I would be very interested in how it performs (since my program can only be compiled up to 386 with my compiler). Please make sure that you do NOT use FPU emulation in the compiled code if you can help it (I have the option in both my BASIC and Pascal compilers) as it GREATLY slows down the program.
Boy I sound nit-picky today!! Perhaps I should just upload the code and trust you to do your best
Post your times running 1 - 1,000,000 in a DOS window (not full-screen!).
JigPu
Also, if you could compile it with 486 or above code, I would be very interested in how it performs (since my program can only be compiled up to 386 with my compiler). Please make sure that you do NOT use FPU emulation in the compiled code if you can help it (I have the option in both my BASIC and Pascal compilers) as it GREATLY slows down the program.
Boy I sound nit-picky today!! Perhaps I should just upload the code and trust you to do your best
Post your times running 1 - 1,000,000 in a DOS window (not full-screen!).
JigPu