Questions tagged [object-code]
41 questions
                    
                    279
                    
            votes
                
                10 answers
            
        Assembly code vs Machine code vs Object code?
What is the difference between object code, machine code and assembly code?
Can you give a visual example of their difference?
         
    
    
        mmcdole
        
- 91,488
- 60
- 186
- 222
                    101
                    
            votes
                
                3 answers
            
        How can I examine contents of a data section of an ELF file on Linux?
I've been using objdump to look at assembly code in Linux ELF binaries.
Sometimes there is an indirect jump through a jump table that is stored in the rodata (read-only data) section.
How to get objdump or any other tool to show me the contents of…
         
    
    
        Norman Ramsey
        
- 198,648
- 61
- 360
- 533
                    8
                    
            votes
                
                4 answers
            
        What converts Assembly language to machine code
I am new to programming and I started with C++ language, as far as I know C++ language is converted to assembly language by the C++ compiler (Ex:Visual Studio), but I tried looking up for what converts the assembly language into machine code to be…
         
    
    
        Karim K.
        
- 361
- 2
- 4
- 9
                    6
                    
            votes
                
                4 answers
            
        Finding locations in machine code (gcc/objdump -d)
If you have a particular line of C code in mind to examine in the machine output, how would you locate it in objdump output.  Here is an example
if (cond)
   foo;
   bar();
and I want to see if bar was inlined as I'd like.
Or would you use some…
         
    
    
        Setjmp
        
- 27,279
- 27
- 74
- 92
                    5
                    
            votes
                
                1 answer
            
        Using LLVM bytecode for libraries (instead of native object files)
What are the implications on
portability (calling convention: does it really matter at an LLVM level when only calling into C or OS library functions)
link time
optimizations
I would like to compile a toy language with LLVM, due to all the hard…
         
    
    
        rubenvb
        
- 74,642
- 33
- 187
- 332
                    5
                    
            votes
                
                0 answers
            
        How to Save CCSprite as PNG
I created CCSprite and add it to the main view.
Then I want to see the sprite image, so I saved it to PNG
But lots of them doesn't saved correctly.
Only show white background.
I can't know the reason, and also found some articles via Google, but…
         
    
    
        bTagTiger
        
- 1,261
- 5
- 23
- 38
                    5
                    
            votes
                
                1 answer
            
        When the declaration of the function is in a traditional style, why isn't the output correct?
I have declared the function pow in the traditional way of declaration in C. However, the output of function is incorrect. I don't need to include math.h here as I am declaring the function and the object code for it is already present. Here is my…
         
    
    
        Yatn Bangad
        
- 53
- 1
- 3
                    4
                    
            votes
                
                1 answer
            
        List internal references in gcc or clang object files
Given an object file that exposes a symbol, how can I determine if the symbol is also used internally?
My objective is dead function detection. I already have the ability (via readelf) to find if it's used from another object file but this fails…
         
    
    
        BCS
        
- 75,627
- 68
- 187
- 294
                    4
                    
            votes
                
                1 answer
            
        Difference between Machine code and Object Code
I'm in the middle of my a levels and im doing some revision for my Computing exam.
I was wondering if someone could tell me what the difference is between machine code and object code. 
keep it it simple please.
         
    
    
        Jazz
        
- 41
- 1
- 4
                    3
                    
            votes
                
                1 answer
            
        Noise on CCSprite
I made my project to show simple texture by using CCSprite.
But I found that the texture contains some tiny noise , black pixel bug.
I divided the png file into small piece by using code. And add it to the mainview.
Not all of them have noise, But…
         
    
    
        bTagTiger
        
- 1,261
- 5
- 23
- 38
                    3
                    
            votes
                
                1 answer
            
        How can I compile, assemble and link a C++ file using Clang?
I have been coding for over 5 years and would now like to take a step away from IDE's and try a project without one. I have the things I need to get started (I think), a HelloWorld.cpp file, the Windows Command Prompt open and Clang installed.
Now…
         
    
    
        Kyle_Pearce
        
- 111
- 1
- 8
                    3
                    
            votes
                
                1 answer
            
        Visual Studio: preserve code order/boundaries with compiled code
I have an application consisting of mixed C and x86 assembly code.  For complex reasons, the assembly code wants to know if a (purported program counter) value is an address in the area in which the object code for the C code exists. This…
         
    
    
        Ira Baxter
        
- 93,541
- 22
- 172
- 341
                    2
                    
            votes
                
                2 answers
            
        How to get AST (Abstract Syntax Tree) of an Erlang local fun?
For some Erlang terms for example atom, tuple, list i can get AST using erl_parse:abstract/1. But it does not work for funs.  
~ $ erl
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0 …
         
    
    
        Pouriya
        
- 1,626
- 11
- 19
                    2
                    
            votes
                
                1 answer
            
        LLVM: Implement linking of the object code
I am following the kaleidoscope tutorial. Emitting object code is very simple, but now I would like to implement linking step so that my toy programming language could compile directly into a binary (so there is no clang usage necessary). How can I…
         
    
    
        gruszczy
        
- 40,948
- 31
- 128
- 181
                    2
                    
            votes
                
                0 answers
            
        how to call C subroutine from object file at runtime
I am trying out a C program. I have a c subroutine sub defined in a file sub.c as follows:
int sub (int a, int b)
{
   return a + b;
}
I compile this file and produce an object file sub.o.
I want to call the subroutine sub that sits in sub.o from…
         
    
    
        Tem Pora
        
- 2,043
- 2
- 24
- 30