Results 1 to 10 of 10
-
15-09-2012, 05:00 PM #1
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..
-
16-09-2012, 02:34 AM #2
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).
-
16-09-2012, 09:20 AM #3
Re: where does the compiler present...
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
-
16-09-2012, 02:08 PM #4
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..
-
16-09-2012, 09:42 PM #5
Re: where does the compiler present...
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
-
17-09-2012, 02:05 AM #6
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).
-
17-09-2012, 05:36 PM #7
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 ......
-
17-09-2012, 07:47 PM #8
Java compiler was installed with the JDK. The class code was generated via the Java compiler and not the IDE.
-
18-09-2012, 12:12 AM #9
Re: where does the compiler present...
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).
-
16-01-2013, 10:49 AM #10Right Off the Assembly Line
- Join Date
- Nov 2012
- Posts
- 19
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.



LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks