Results 1 to 10 of 10
  1. #1
    Apprentice Ashokkumar01cbe's Avatar
    Join Date
    Jul 2012
    Location
    Coimbatore, Tamil Nadu, India
    Posts
    80

    Angry where does the compiler present...

    i am using codeblocks for doing my c and c++ program , everybody knows that object code for a program is generated by complier .and that source code will vary depending upon the OS , for a same program. but my question is that is the compiler comes with the codeblocks software,or it is integrated to the OS..please tell me..

  2. #2
    I am the night...I am... vickybat's Avatar
    Join Date
    Aug 2009
    Location
    Gotham City
    Posts
    4,795

    Default Re: where does the compiler present...

    ^^ Compiler is integrated with an IDE & not OS. Linux has an inbuilt GCC compiler though.

    Codeblocks is an ide and compiler is integrated with it.
    Core i5 750, biostar h55 A+ (X16+X4), 4gb 1333 ddr3, corsair vx450, cm elite 335,Asus EAH 5750 FORMULA , samsung 2033 sw plus, wd green 1tb , wd 1tb my book ,Seagate freeagent ext hdd 1tb , hp dvd writer,Apc 650 va, logitech z313 , Micromax Funbook , Klipsch image S3 (IEM).

  3. #3
    ico
    ico is offline
    . ico's Avatar
    Join Date
    Jun 2007
    Location
    Bangalore
    Posts
    9,865

    Default Re: where does the compiler present...

    Quote Originally Posted by Ashokkumar01cbe View Post
    i am using codeblocks for doing my c and c++ program , everybody knows that object code for a program is generated by complier .and that source code will vary depending upon the OS , for a same program. but my question is that is the compiler comes with the codeblocks software,or it is integrated to the OS..please tell me..
    Download binary

    When you download from here, you see two options for Windows.

    codeblocks-10.05-setup.exe - this one is to be used if you have a compiler already installed.
    codeblocks-10.05mingw-setup.exe - this one comes with the MiniGW compiler for Windows which is actually based on GCC.
    AMD A8-3870K with Radeon HD 6550D | Digilite A55M (Foxconn) | 2 * 4 GB Corsair 1600 Mhz Value RAM | Corsair CX430v2 | NZXT Gamma | Dell S2240L 22" @ 1080p
    Intel i5-2500K | Asus P8Z68 Deluxe | 2 * 4 GB Corsair Vengeance | WD Caviar Blue 500 GB | CM Hyper 212 Evo | AMD Radeon HD 6950 2 GB | NZXT Tempest Evo | Corsair AX850 | AverMedia AverTV Capture HD H727
    Samsung Galaxy S2 | Mac mini (Late 2009) with OS X Mountain Lion, 10.8
    Pandaboard ES | OMAP 4460 SoC | 2 * ARM Cortex A9 cores | PowerVR SGX540 graphics
    Arch Linux amd64 | Ubuntu 12.04 amd64 + omap4 ARM | Windows 7 x64

  4. #4
    Apprentice Ashokkumar01cbe's Avatar
    Join Date
    Jul 2012
    Location
    Coimbatore, Tamil Nadu, India
    Posts
    80

    Default

    Hi,
    If a program named HECTIC when it is complied in windows ultimate installed with codeblocks, an object code is generated ,is the object code same when it is complied in MACINTOSH computer or different..

  5. #5
    ico
    ico is offline
    . ico's Avatar
    Join Date
    Jun 2007
    Location
    Bangalore
    Posts
    9,865

    Default Re: where does the compiler present...

    Quote Originally Posted by Ashokkumar01cbe View Post
    Hi,
    If a program named HECTIC when it is complied in windows ultimate installed with codeblocks, an object code is generated ,is the object code same when it is complied in MACINTOSH computer or different..
    There are two steps.

    Compiling and Linking - Cprogramming.com

    You could assume that Object Code is same. But the Linker, (Linker is what creates the executable file), Linker output is different.
    AMD A8-3870K with Radeon HD 6550D | Digilite A55M (Foxconn) | 2 * 4 GB Corsair 1600 Mhz Value RAM | Corsair CX430v2 | NZXT Gamma | Dell S2240L 22" @ 1080p
    Intel i5-2500K | Asus P8Z68 Deluxe | 2 * 4 GB Corsair Vengeance | WD Caviar Blue 500 GB | CM Hyper 212 Evo | AMD Radeon HD 6950 2 GB | NZXT Tempest Evo | Corsair AX850 | AverMedia AverTV Capture HD H727
    Samsung Galaxy S2 | Mac mini (Late 2009) with OS X Mountain Lion, 10.8
    Pandaboard ES | OMAP 4460 SoC | 2 * ARM Cortex A9 cores | PowerVR SGX540 graphics
    Arch Linux amd64 | Ubuntu 12.04 amd64 + omap4 ARM | Windows 7 x64

  6. #6
    I am the night...I am... vickybat's Avatar
    Join Date
    Aug 2009
    Location
    Gotham City
    Posts
    4,795

    Default Re: where does the compiler present...

    ^^ That's a nice link gagan.
    Core i5 750, biostar h55 A+ (X16+X4), 4gb 1333 ddr3, corsair vx450, cm elite 335,Asus EAH 5750 FORMULA , samsung 2033 sw plus, wd green 1tb , wd 1tb my book ,Seagate freeagent ext hdd 1tb , hp dvd writer,Apc 650 va, logitech z313 , Micromax Funbook , Klipsch image S3 (IEM).

  7. #7
    Apprentice Ashokkumar01cbe's Avatar
    Join Date
    Jul 2012
    Location
    Coimbatore, Tamil Nadu, India
    Posts
    80

    Default

    If a java program named digit is compiled and executed in a windows pc ,an class code is generated same as object code in c..is the class code is generated via compiler then in windows there is no complier is installed .how is it generated..... please explain me ......

  8. #8
    Neo
    Neo is offline
    Bird of Hermes Neo's Avatar
    Join Date
    Jun 2011
    Location
    Near my Computer.
    Posts
    934

    Default

    Java compiler was installed with the JDK. The class code was generated via the Java compiler and not the IDE.
    Twitter | Steam | MyAnimeList
    Spoiler:
    Intel Pentium E5400 @2.7 Ghz | Intel DG41RQ | 2 GB A-Data DDR2 | WD Caviar Green 1TB | nVidia Geforce 8400GS 512 MB
    LG Optimus One P500 | Windows 8 x86 | Arch Linux x86_64

  9. #9
    I am the night...I am... vickybat's Avatar
    Join Date
    Aug 2009
    Location
    Gotham City
    Posts
    4,795

    Default Re: where does the compiler present...

    Quote Originally Posted by Ashokkumar01cbe View Post
    If a java program named digit is compiled and executed in a windows pc ,an class code is generated same as object code in c..is the class code is generated via compiler then in windows there is no complier is installed .how is it generated..... please explain me ......
    When you compile the "digit" java code, the compiler generates a java bytecode. This bytecode is platform independent and needs a java virtual machine to run or something that can interpret the bytecode.
    In java, we have java virtual machines or simply JVM which interprets the bytecode generated by compiler and JVM is compatible with a lots of devices from handhelds, systems, consumer electronic gadgets etc and any system running a JVM can read and run the bytecode generated.

    So java bytecode is termed as platform independent and can run in any system that has a JVM.
    Core i5 750, biostar h55 A+ (X16+X4), 4gb 1333 ddr3, corsair vx450, cm elite 335,Asus EAH 5750 FORMULA , samsung 2033 sw plus, wd green 1tb , wd 1tb my book ,Seagate freeagent ext hdd 1tb , hp dvd writer,Apc 650 va, logitech z313 , Micromax Funbook , Klipsch image S3 (IEM).

  10. #10
    Right Off the Assembly Line
    Join Date
    Nov 2012
    Posts
    19

    Default Re: where does the compiler present...

    when we compile a program,class file is generated and that is not in read mode in this case we use Java virtual Machine which is platform dependent that makes class file as independent platform and make sure it runs in different OS.Each browser will have JVM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Close