Linked Questions

35 votes
4 answers
21k views

I was asked a question: "What is an 'object file'?". After looking at Wiki, I only know that it contains objects. But what are those objects and why someone called them that way?
sthlm58's user avatar
  • 1,274
0 votes
1 answer
3k views

I'm a beginner in programming, I wonder what is inside the .o files and want to see it, but can't open the files in windows because they give some output with unrecognized symbols. Please suggest ...
hackeroid's user avatar
1 vote
1 answer
1k views

I got these console output while compilation via GCC. Building CXX object xxxxxxx.cpp.obj What are the .cpp.obj files? Are they the object file? Do the same as the .o file?
JustWe's user avatar
  • 4,534
290 votes
10 answers
204k views

What is the difference between object code, machine code and assembly code? Can you give a visual example of their difference?
mmcdole's user avatar
  • 93.2k
47 votes
3 answers
34k views

How does C++ linking work in practice? What I am looking for is a detailed explanation about how the linking happens, and not what commands do the linking. There's already a similar question about ...
Klaufir's user avatar
  • 791
9 votes
3 answers
19k views

I'm just starting with C. I'm trying to compile the below code and execute it, but I get an error. Also running size shows nothing in BS or data stacks? #include<stdio.h> /* test.c: My first ...
Ankh2054's user avatar
  • 1,153
3 votes
4 answers
5k views

I have bash script where I ask the user for some inputs, and then I want to call a C program a few times, and sum the return value. Please note that the main function inside my C program has some ...
user avatar
1 vote
3 answers
12k views

I have compiled other programs before but, for some reason, I can't work anymore. I have a mac Here's my code. Its purpose is to take three numbers and find the average. #include <stdio.h> int ...
user2607534's user avatar
1 vote
1 answer
5k views

what contains a binary file which come from a ARM GCC for ARM devices? Is there inside it some information about destination address which write to? Or just native, pure, content of program without ...
MrBit's user avatar
  • 300
2 votes
1 answer
4k views

When I compiled my program and ran it, I got a a symbol lookup error. I was doing this: $ gcc -o parts parts.c -lnettle $ ./parts $ ./parts: symbol lookup error: ./parts: undefined symbol: ...
userYou's user avatar
  • 65
1 vote
1 answer
2k views

I am new to the clang++ compiler flags. I have an issue regarding compilation. Here is my cmd: clang++ -I ../llvm-project/llvm/include -I ../llvm-project/clang/include -I ../llvm-project/build/...
Farrukh Nabiyev's user avatar
0 votes
1 answer
1k views

I am working on some (very) low level programming but not everything is completely clear to me. I start by creating a .cpp (or .c) file which is run through gcc to create an elf or object file but ...
dalearn's user avatar
  • 251
-1 votes
1 answer
1k views

Question has been solved, visit the bottom part of this paragraph for details. I have a program: foo.cpp and bar.cpp and have created a Makefile to compile them. This is how it(Makefile) looks: CC=g++ ...
rtanmay's user avatar
1 vote
1 answer
437 views

I know object code is the code after the compilation phase which is present in a object file(eg:aaa.obj). What is this file? Contains Machine Instructions? If so why can't I see any 0's and 1's in ...
prog481's user avatar
  • 359
0 votes
3 answers
768 views

I am trying to install a C software and then make a test program that uses it. The software consists of three files: x-as-func.c x-as-func.h y.h (this has only define statements) the executable x In ...
Manas Paldhe's user avatar

15 30 50 per page