Intel Core Duo 1.83GHz compiler optimization / makefile help

Hi,
I have a C listing which was originally written with unix or Windows in mind, I wonder if anyone could help me to compile it on my Intel iMac 17inch. It's a small benchmarking program so compiler optimization is important - is this possible on an Intel Core Duo (I don't expect to include threading) using XCode or gcc?
I'm not a programmer, the original programmer does not know anything about Macs or OS X, however I would like to use this program to effectively benchmark my machine. Currently the program will not compile using the makefile I have, I can run code compiled on a G4 but it runs slow and gives a false result.
Here's my makefile:
obj = c-ray-f.o
bin = c-ray-f
CC = gcc
CFLAGS = -O3 -ffast-math
$(bin): $(obj)
$(CC) -o $@ $(obj) -lm
.PHONY: clean
clean:
rm -f $(obj) $(bin)
I do not really understand what any of that lot does, nor can I get my head around compiler options (I tried looking, but found nothing that made any sense to me!)
Any help would really really be appreciated!

Change all the -
#include <GL/glut.h>
to
#include <GLUT/glut.h>
and
if ( (!((*x)>=min)) || _isnan(*x) ) { // Other compilers may use "isnan" instead of "_isnan"
to
if ( (!((*x)>=min)) || isnan(*x) ) { // Other compilers may use "isnan" instead of "_isnan"
Then run this script in directory RayTraceKd to build RayTraceKd -
[dranta:~/RayTrace/RayTrace_3.2/RayTraceKd] dir% cat build
cd ../VrMath
g++ -O2 -fpermissive -c *.cpp
cd ../DataStructs
g++ -O2 -fpermissive -c *.cpp
cd ../Graphics
g++ -O2 -fpermissive -c *.cpp
cd ../OpenglRender
g++ -O2 -fpermissive -c *.cpp
cd ../RaytraceMgr
g++ -O2 -fpermissive -c *.cpp
cd ../RayTraceKd
g++ -O2 -fpermissive -c *.cpp
g++ -o RayTraceKd -bindatload -framework GLUT -fpermissive *.o ../VrMath/*.o ../DataStructs/*.o ../Graphics/*.o ../OpenglRender/*.o ../RaytraceMgr/*.o -L/usr/X11R6/lib -lgl -lglu

Similar Messages

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

  • Can I upgrade a 1.83GHz Intel Core Duo iMac running Leopard OS X 10.5.8 to Snow Leopard 10.6.3?

    Can I upgrade a 1.83GHz Intel Core Duo iMac running Leopard OS X 10.5.8 to Snow Leopard 10.6.3?

    Yes this machine will run 10.6 with no problem
    Sadly it will not be able to run 10.7 in the future though.

  • Will ram from a MacBook 1.83GHz Intel Core Duo work on a MacBook 2.0GHz Int

    Will ram from a MacBook 1.83GHz Intel Core Duo work on a MacBook 2.0GHz Intel Core 2 Duo?
    MACBOOK   Mac OS X (10.4.8)  

    Yes, both machines use the same type of memory.

  • HT4759 Will iCloud work if have 4th gen. iPod touch (iOS 6) but an iMac running OS X v.10.6.8 (1.83GHz Intel Core Duo processor prevents Lion upgrade-according to Apple)?

    Will iCloud work when iMac (1.83 GHz. Intel Core Duo) is running Mac OS X 10.6.8 with 4th gen. iPod touch (iOS 6) because unable to upgrade to Lion due to processor's inablit to meet Apple's specifications for Lion? My family had three iPod touch (iSO 6) devices and currently use iClou, but set it up with a Macbook Air using Lion- but yesterday it died. Is there any way to retain the use of oPod touh devices, iTunes purchases, and iCloud services (and the huge amount of money spent on the) if not able to use the Macbook Air? I know the iMac is "old" but do not have thousands of dollars to purchase new computer at this time.

    10.7.2 or later is required to use iCloud on the computer. Your iPod Touch, however, would have full use of iCloud.

  • Photoshop CS 2 Update For Intel Core Duo?

    Does anyone know if there will be an update to Photoshop CS2 to optimize the performance on an Intel Core Duo? The performance of Photoshop CS2 on my Mac Book definitely seems slower than on my older G4 Powerbook.

    Hi
    Have a look at this:
    https://store2.adobe.com/cfusion/store/index.cfm?store=OLS-UK&view=olscat&catType=CSSUITES&catID=CSSUITES&nr=0#view=ols_cat&loc=engb&store=OLS-UK&catType=PRODUCTS&catID=PRODUCTS&catOID=1578503&nr=0
    When you get to website, change Show Me to Creative Suite family.
    I got an email saying CS3 is out.
    Steve

  • I have  a old 2006 modle macbook 15 inch the  A1150 i believe with core duo processor can change or replace that with a intel core duo 2 processor ?

    it,s a 2.16 GHz Intel Core Duo
    memory 2 GB 533 MHz DDR2 SDRAM
    is there some kind of way i can  upgrade that to a Intel Core Duo 2 processor
    or is it  just a batle i cant win ?

    You should be able to get a used or repaired MacBook 13/15-inch core2duo 2.0+GHz near
    $350 or so, in working condition with some kind of limited warranty or guaranty. Companies
    like macsales, wegenermedia, powerbookmedic, powermax and others offer previously
    owned Macs that are not current models. Older, to vintage or obsolete; those who some-
    times have the better deal on those also can repair most all Macs and have parts.
    The effort to swap out a logic board (and then what? the
    other parts likely won't match) isn't hardly worth the effort.
    You may be able to find an early MacBook (circa 2006 to 2010 era) that needs minor work,
    and troubleshoot/repair it with a DIY guide online... But that can be a gamble if you mess
    up things that were not wrong in the first place, while learning on the job. It could cost plenty.
    Some companies can sell you used parts, no guarantees on matching an incorrect logic
    board with a diffferent build model spec computer's other original configuration. You'd do
    better if you found someone selling their old MacBook Core2Duo, nearby, & could see it run.
    I have a MacBook 13-inch coreduo 1.83GHz first-edition; an early core2duo won't do much
    more than the coreduo. Snow Leopard is better than Lion in several ways; if you have older
    software you already own that works, from the PowerPC era -- that can save you money.
    Good luck in any event, & happy computing!

  • The Whine of Intel Core Duo (mobile) (& its users) in Laptops of all brands

    Can I start by saying - OH NO, NOT ANOTHER WHINE THREAD.
    But I had a search and this issue doesn't seem to be covered that much yet, and I feel it's important for us blighted by the whine to work out what to do about it. Apple has told me (and a lot of you) many different answers, "We recognise this issue and we're trying to fix it", "They've all got it! Stop complaining", "It's within spec, they're MEANT to do that", "Faster processor architectures generate more noise, there's nothing we can do", "You're mad.. there's no noise."
    I think we can take these points as givens:
    • There are three noises commonly reported; moo (HDD-fixable) / buzz (Inverter-fixable) / whine (CPU-mysterious). We're dealing with whine here.
    • Not all MBPs are created equal, some whine, some don't.
    • AppleTech will feed you a line to get you to go away. Don't give up.
    • A whine is NOT within spec at these prices. (check consumer rights)
    • The whine is made by hardware vibration of some sort, this can be affected by software, but the software does not generate it (ie. it doesn't come out of the speakers).
    • When running XP, for 99% of people the whine disappears.
    • The whine seems to be related to battery power as well. Most people experience a louder whine when using (or charging) the battery.
    So in a roundabout way I come to this - Does anyone know of other laptops using Intel Core Duos and causing a whine noise? In my opinion this is unlikely as the whine disappears in XP, but it would be good to know if it is happening anywhere else. If you know of any other 'whiners', please post a link to where you found out about it and the name of the model doing it.
    If other models do it, it would seem to indicate defective processors (which lends credence to Apple's "it's a problem with newer, faster processors" line), and it ain't really Apple's fault - but they'll still need fixed. If Apples only do it, then we should all shout at Apple for lying to us until we get ours fixed/replaced.
    My laptop is being picked up in two days to be 'repaired' so we'll see what happens then. According to AppleTech I'll get a report on any repairs done to it, so I'll post again with what repairs were carried out and what effect they had when it comes back.
    MacBook Pro 1.83GHz   Mac OS X (10.4.5)   1.5GB RAM, 80GB

    Hey LanEvoVIII... (Have you ever heard one of the defective MBPs in real life? If you feel the need to reply to this post, answer that question, although it would be infinitely preferable if you just removed yourself.)
    Technology is not perfect, I know that. But for the amount of money you pay for Apple technology it should be better than this. And perhaps I wouldn't have bought a computer if I'd known that it makes noises like this.. unfortunately not mentioned anywhere by Apple, only on these forums where you-who-knows-best says we shouldn't talk about it.
    Also you numpty, the point of all of this is we're trying to use the return policies and hardware warranties and gettin the runaround by Apple. This is another reason why people are unhappy - not so much the problem, more the fact about it's resolution (or lack of).
    So how's about this? shut yer face. I'm aware of the irony of whining about a whine. You're so smart and funny referencing the same lil joke I made at the beginning of the post. What a smart smart human you are. Go on, give yourself a wee pat on the back for being so good and understanding the nature of technology so well. Go on, do it. There, doesn't that feel nice? Now go take your smug sense of self-satisfaction to some other thread and let us try and sort this out so that it doesn't drag on any longer.
    Natsus, well said, sorry but I couldn't keep such a nice calm head about it as you. I know things are better if we all stay civil to each other. After so much trouble with this issue I ain't got much patience left, especially for people like "LanEvoVIII".
    MacBook Pro 1.83GHz   Mac OS X (10.4.5)   1.5GB RAM, 80GB

  • Airport Extreme 802.11n upgrade options for early Intel Core Duo iMac

    I have an iMac from mid 2006. I recently purchased a Timecapsule - partly for the wireless back ups, and partly to upgrade my wireless network to 802.11n. There is a software upgrade from Apple that upgrades older 802.11 a/b/g Airport cards in the iMac to 'n' standard. Here is the link:
    http://store.apple.com/uk/product/D4141ZM/A?fnode=MTY1NDA0Mg&mco=MjIzMDkzNA
    The page states that the upgrade is compatible "If you have a Mac with an Intel Core 2 Duo processor (except the 17-inch, 1.83GHz iMac)". What it doesn't tell you is that if you have an early version of the iMac (pre-Sept 2006) that shipped with the Intel Core Duo Processor (note - not the Core 2 Duo) then the upgrade will not work. I have also tried to install Airport Extreme updates (2007002 and 2008004) and these report that the hardware is not compatible. Doing some searching around these forums and others, the issue with the original Core Duo iMacs not being upgradeable to 802.11n is out there - shame Apple weren't more explicit.
    I have seen that there are various USB based 802.11n adapters available. Whilst searching on this topic, I also came across a site offering various Mac upgrades, including an upgrade to the Airport card to upgrade wireless capability from 802.11g to 802.11n. It looks like a straight replacement for the internal card - link here:
    http://www.macupgrades.co.uk/store/productinfo.php?productsid=461
    The company offering this is in the UK, but the product appears to be from a Sonnet, a US company. Does anyone out there have experience of installing this product (or having it installed) and can you comment on how it performs? Is it a seamless replacement for the original Airport card?

    What it doesn't tell you is that if you have an early version of the iMac (pre-Sept 2006) that shipped with the Intel Core Duo Processor (note - not the Core 2 Duo) then the upgrade will not work.
    If it says you need to have a Core "2" Duo processor, then it seems to me they are telling you very clearly that it will not work with the earlier Core (no "2") Duo iMacs.
    The "late 2006" iMacs with Core 2 Duo (except for that one education model they mentioned) have wireless networking hardware that is 802.11n capable. When they were initially sold, Apple chose to NOT enable the "n" capability for some reason; maybe because the standard was still in flux and not enough testing had been done with the driver. Later, they enabled the "n" capability with a firmware update. But that was only possible because the wireless hardware was already capable of doing "n."
    Earlier iMacs do not have this hardware so there is no way to enable it with a firmware or software update. 802.11g is plenty fast enough for Internet access (you won't notice a difference with "n"). If you are using Time Machine over wireless, it may take a while longer to do that initial backup (you could connected it by Ethernet cable when it is doing that initial backup), but subsequent backups are incremental, so the "g" versus "n" speed difference will not be as critical. Since your iMac is Core Duo (32-bit) and the future of Mac OS X is 64-bit, especially after Snow Leopard's release, it may be best to save your money and keep your iMac intact (not opened).

  • Is it better to buy the Intel Core Duo iMac no. 1?

    Here the iMacs Core Duo 1,83Ghz and Core 2 Duo 1.83 Ghz are the same price. Difference is, the Core Duo has an ATI X1600 card while the Core 2 Duo has that crappy Intel 950 integrated graphics chip. So which would be better for me to buy?
    Thank you all so much.
    iMac DV SE 400Mhz   Mac OS X (10.4.8)  

    Thanks for the answer!
    From my experience Macs do not need 256 MB video cards, am I right? Like, ther ATI X1600 comes in 256, 512MB for PC versions... And when my Imac with its 8MB of video memory was able to play games, I always noticed that the same game on the PC required 32 or 64 MB of dedicated video.
    I know the Intel is better than the others... But since I read that all the options in World of Warcraft were greyed out using this card, it annoyed me... After all it's kind of an old game, since it runs on a G4 with 1 GHz.
    Anyway I've made up my mind and decided for the first model, actually it's 500 USD cheaper and that helped me a lot in choosing it

  • 32-bit Intel Core Duo ok with upcoming 64-bit Leopard?

    How well suited is the 32-bit Intel Core Duo in my MacBook Pro to run the future 64-bit Leopard OS? What would be the compromises?
    Should I sell my Core Duo now while I can (maybe...) and upgrade to the 64-bit Core2 Duo. Would a 32-bit chip such as the Core Duo struggle to operate efficiently - or at least as fast as it does under 32-bit Tiger - when run within the 64-bit Leopard OS?
    Cheers
    Ant

    You might find this tidibit (from AnandTech) )interesting, Kappy:
    "Why a 64-bit mode can actually be slower than a 32-bit counterpart
    If all else is equal, a 64-bit MPU will be slower than its 32-bit equivalent. A study conducted by DEC found that, on average, compiling for 64bit programs decreases performance by 5%. This is because 64-bit address pointers occupy more space, resulting in higher data cache miss rates. In fact, 64-bit ISAs still support 64-bit addressing and 32-bit data operands, specifically to keep code size down and the miss rate penalty to a minimum; thus 32-bit integer data is still going to be used when the larger range of 64-bit integers are not needed.
    What good is 64-bit computing?
    There is one good use for 64-bit integer arithmetic: 64-bit flat memory addressing. Offering memory addressing beyond 4GB, 64-bit addressing needs 64-bit general purpose registers and 64-bit integer arithmetic for memory pointer calculations. This obviously has no effect on 32-bit vs. 64-bit performance, since 64-bit memory addressing on a 32-bit processor is a moot point."
    So it's not clear that going 64-bit, in and of itself, would yield any improvement in performance; it may well be worse in some cases (and your analogy might well be true, depending on the cache algorhythms and efficiency).
    Certainly if one processor has a wider memory bus than another, then the first processor should, all else being equal, outperform the second processor. I can't find specs on the memory fetch for the Core Duo and the Core 2 Duo, so I can't say whether or not they differ. The PowerPC G5 processor actually has a 128-bit wide memory fetch (64-bit in and 64-bit out) though it's classified as a "64-bit processor" (based on it's memory address space, I would presume).
    So, as you allude, one has to be careful making performance estimates just based on a desciption of a processor being "32 bit" or "64 bit". We'll have to wait to see reasonable benchmarks between the Core Duo and the Core 2 Duo running a 64-bit OS before we'll really know what advantage, if any, there is.
    Cheers.
    Message was edited by: Dave Sawyer

  • Power PC vs Intel Core Duo

    Hi guys, I am in a process of buying a new computer... here are the two choices I am considering.
    iMac G5
    $1,499.00
    Specifications
    20-inch widescreen LCD
    2.1GHz PowerPC G5
    512MB memory (533MHz DDR2 SDRAM)
    250GB Serial ATA hard drive
    Slot-load 8x double-layer SuperDrive
    ATI Radeon X600 XT with 128MB DDR video memory
    what I like
    20 inch screen
    big 250G hard drive
    Price (1,699.00 for a Core duo w/ a 20in is over my budget)
    iMac 1.83Ghz Intel Core Duo
    $1,299.00
    17-inch widescreen LCD with 1440x900 resolution
    1.83GHz Intel Core Duo with 2MB shared L2 cache
    512MB (single SO-DIMM) 667MHz DDR2 SDRAM
    160GB Serial ATA hard drive
    Slot-load 8x double-layer SuperDrive
    ATI Radeon X1600 graphics with 128MB GDDR3 memory
    Built-in AirPort Extreme and Bluetooth 2.0
    what I like
    Best Price for an iMac
    newer technology - Airport Extreme, Graphics Card etc.
    Now the problem
    I can't decide! Screen Size and HD space are important to me... but new technology at a cheaper price is VERY tempting!
    Question is.... is Intel Core Duo THAT superior to PowerPC?
    Please iMac gurus ....help me out!
      Windows XP  

    well, how critical and powerful is your rig? i only use my imac g4 (soon to be the G5) for ideas and such, also to trade logic files back and forth w/ a friend of mine. live I don't use, nor do i have experience with that app. my buddy, however, has dual g4's and records live music, drums, guitars, etc and really needs that added power, so ask yourself, how much will you be running. if going for the whole live band thing, i would go with the power mac. currently the system has been reliable and proven and fast enough to handle most of your tasks. the intel is fast, but still has kinks and bugs in it, and not all apps, especially 3rd party are univeral yet. that my friend, will cause your music to suffer, and you do not want that.
    the m-audio oxygen 8 is what i use, in addition to the tascam us-122. neither are unversal yet, and like i said i couldn't wait for them to be released, it was interuppting my productivity. and i didn't want to go with the firewire 410 (an excellent unit by the way) because it meant more money for me to spend!

  • Firefox runs as a PowerPC kind on an Intel Core Duo MacBook

    Hi All,
    For some reason, my Firefox 3.6.9 runs as a PowerPC kind (confirmed by looking at the Activity Monitor) on an Intel Core Duo Mac Book. I guess that's what causes high CPU utilization and unexpected exits. How can I ask it to run as Intel image?
    TIA,
    Slava Imeshev

    I have Lion installed on a Mini with a C2D processor. The same Mini has Snow Leopard on another partition and there is no noticeable difference in operational speed between the two OS's. But compared to my new MBPro 17" with a 2.83GHz i7, the Mini running Lion is noticeably slower. So if you can afford anew MBPro, then I would get it because you will probably be unhappy with the performance of Lion on the older MBPro. The other benefit of getting a new MBPro with Lion is that if you have any Power PC applications currently on the old MBPro, which will not operate in Lion, then you still have the ability to use them. Many users got stung by upgrading to Lion, only to find they could no longer use the older PPC applications.

  • I have a Mac mini OSX 10.4.11 Intel Core Duo, 512mb, 1.83 GHz with iTunes 9.0.3. What steps do I need to take to get my music library to my iPad. I dont think I meet the requirements to just upgrad to snow leopard and/or lion. I want the music I paid for

    I have a Mac mini OS X 10.4.11, intel core duo processor (not core 2 duo), with 512 mb and 1.83 GHz processor.  I only have version 9.0.3 of iTunes because it hasn't let me go higher, which I believe is because of the operating system.  I want to get my purchased music from the Mac mini to a different computer (that has the latest version of iTunes) and also my iPad.  The Mac mini does not meet the requirements listed to simply upgrade to snow leopard or lion. As far as I can tell.  Forgive me if I am lacking here...this is new to me.  What can I do to get the music transferred.  I have invested alot of money over the past few years on all this music that I should be able to transfer.  Thank you in advance if you can help me.

    If you want to sync it to the iPad from that Mac, you need to upgrade it to at least 10.5.8.
    If you want to copy the music to another Mac, you don't. Move the iTunes folder of the item in the Finder's sidebar over as you would any other folder. If you put it somewhere other than the Music folder, launch iTunes with the Option key held down and point it to that location.
    (61713)

  • Macbook1,1 Intel Core Duo: Support for 3gig RAM??

    Hi All,
    I've recently upgraded my rather standard MacBook from 80gig HD 1gig RAM (2x512) to a 320gig HD and 2gig RAM (1 x 2gig card). I really wanted to insert a further 1 gig of ram, thus having a 2gig and 1gig in each slot.
    However, the computer doesn't seem to boot with 3gig installed.
    System Profiler tells me:
    Macbook1,1
    Intel Core Duo
    2 Ghz
    1 processor
    2 cores
    2MB L2 Cache
    2GB memory
    667mhz Bus speed
    Boot ROM version: MB11.0061.803
    SMC version 1.4f12
    I keep reading conflicting reports all over the support site, with some saying macbooks can hold a max of 2gig ram and other saying 3gig is supportable.
    I fear that my model may be too old to run 3gig? Is there a firmware upgrade or similar that might allow me to expand to 3gig?
    Any tips, advice, feedback or even jeers are welcome!
    Cheers,
    Dan

    I keep reading conflicting reports all over the support site, with some saying macbooks can hold a max of 2gig ram and other saying 3gig is supportable.
    A Core Duo MacBook supports a maximum of 2GB RAM. A Core 2 Duo MacBook supports 3GB or more depending on the model.
    I fear that my model may be too old to run 3gig?
    It is too old.
    (36298)

Maybe you are looking for

  • How do you choose which blog to post video to?

    we have two group blogs and need the students to be able to post video from podcast capture to both of them but need to be able to choose which blog. Any ideas?

  • Cdata in Web service response

    Dear All, I am trying to pass XML String in SOAP response, but its giving me "<" as < and ">" as >. I tried using Cdata , by wrapping xml string in CDATA, but still it fails. example: <!CDATA[<xml string>]] Is there any apporach of sending XMLString

  • Will Power Mac 6500 HD fit/connect in G4 MDD?

    Is it possible that the internal HD of my Power Mac 6500 can be installed into my G4 Mirrored Drive Door desktop? Are the physical size/mountings and cable connector(s) compatible? Anything else I need to consider? Thanks.

  • Web.xml  configured correctly(I think),  but still getting '404...resource

    not found error' from tomcat. Here is my web.xml: <servlet> <servlet-name>HelloServlet</servlet-name> <servlet-class>HelloServlet</servlet-class> </servlet> <servlet> <servlet-name>HelloServlet2</servlet-name> <servlet-class>coreservlets.HelloServlet

  • Antivirus boot

    I've got a computer that has the Antivirus Security Pro virus on it and it's beating me up pretty badly. I can't boot into safe mode, nor can I load any programs to clean it up. What can I do to get this off my system? [Moderator edit to remove possi