Thread: Java is 1000 times faster than c++ on my computer???

  1. #16
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,215
    With GCC 4.3.3 on Linux, "-O0" is slow, "-O1" and above give 0 seconds.

  2. #17
    Registered User
    Join Date
    Jun 2009
    Location
    Seattle
    Posts
    6
    I finally got Kdevelop working and rewrote the program in the ide and turned on optimization via kdevlops menu. The C++ version now runs as fast as the java version (roughly, I didn't put the timer statements in)
    I'm not sure why the optimization switch on the command line didn't seem to do anything, but thanks for all the help and comments.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tabbed Windows with MDI?
    By willc0de4food in forum Windows Programming
    Replies: 25
    Last Post: 05-19-2005, 10:58 PM
  2. Computer will not boot.
    By RealityFusion in forum Tech Board
    Replies: 25
    Last Post: 09-10-2004, 04:05 PM
  3. Regarding Undergraduate Computer Majors
    By UnregdRegd in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-04-2003, 11:55 AM
  4. This is my last night on this computer.
    By joshdick in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 07-12-2003, 01:33 AM
  5. Which distro should I run on my old computer?
    By joshdick in forum Tech Board
    Replies: 5
    Last Post: 04-09-2003, 01:37 AM