Thread: Max space that turbo c can utilize

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by mradul.exe View Post
    Thanks Mats. Even the previous code is much faster.
    Yes. With the combination of the two changes, it should be something in the order of 30-100 times faster than the original. It would be even better to not use a pure linked list, but always allocate blocks of digits (say 1024 at a time). But that requires more extensive changes to the multiply function - and it's easy to introduce new bugs when doing those sort of changes.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I now have a 575KB file that supposedly contains the 123456! - it took around 1.5 hours to calculate (4800 seconds).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Remember Turbo? It is comming back
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2006, 01:26 PM
  2. Easiest way to find the max value stored in an array
    By criticalerror in forum C++ Programming
    Replies: 14
    Last Post: 01-22-2004, 03:35 PM
  3. Question of White space
    By terryrmcgowan in forum C Programming
    Replies: 3
    Last Post: 06-09-2003, 09:13 AM
  4. Replies: 12
    Last Post: 05-17-2003, 05:58 AM
  5. Double output!
    By Spurnout in forum C++ Programming
    Replies: 3
    Last Post: 11-02-2002, 03:35 AM

Tags for this Thread