Trilby wrote:Gcc compiles C into "plain old assembly", so why would you want to program in C? Cut out the middle man, and write in assembly.Assembly is assembled into plain old binary machine code, so why would you want to program in assembly?Binary machine code is translated at runtime by the processor into high and low voltage states on a series of registers and output lines.
I found code in 80836 DOS assembly that I'd like to port to 32-bit Linux assembly, using AT&T syntax.
I found site that explains some differences but only about registers.
While I'm learning x64 assembly, I'm trying to make add method to add two integers and return integer using assembly.
I had the working code with x86 and I tried to convert to x64
simply I changed the registers' names to be that of x64 and the object file generated without errors but when I use it inside my C function I always get sum = 0.
I think there's a problem with the arguments location a
Hi. I learned C in high school and am proficient in it:D. At the college while learning microcontrollers there was a short course on assembly language which I skipped:p but had no trouble as most of the application programming had to be done in C. Should I go back n learn assembly language as I have heard it gives good insight into the hardware?
Incompatiblity of the code due to CC compiler version mismatch.
I have a machine with
Code:
Machine A-- Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8)
CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07
we have compiled C++ code, generated .so files are working fine on the Machine C --
I'm trying to write a simple compiler. My language can calculate a arithmetic expression in float, saving and printing a variable. In first version of my compiler I used allocating calculate expression to assembly function, and all my calculating only used a push/pop.
Then I issued expression code to _start label, and make calculate with call absolute stack address.
Hello
Machine A:CC: Sun C++ 5.5 Patch 113817-07 2004/03/23
Machine B:CC: Sun C++ 5.8 2005/10/13
I have compiled a code with same options
/opt/SUNWspro/bin/CC -c -fast -O3 -DSYSTEMV -DCGM attdictionary.C
on both the Machines A,B
on Machine A i could see code successfully compiled
on Machine B it is not it reporting following Error
"attdictionary.C",line 226: Error: count is not def
I have 11.10 (32 bit OS) in my computer. It has gcc-4.6 as the default compiler. As it is installed by default, I can't modify the source and rebuild it again.
I want to modify the source code of the gcc compiler itself.
So, i was coding in assembly (IAS-32), when i got an arithmetical error. I searched over and over but couldnt figure it out. I dont know why but when I try to do 2/1, this error pops out. The problem is, I have to finish it today, so...