Thread: disasm in C ??

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    Question disasm in C ??

    hi again! I've got a little question about disassembly ! How do I write a C programm that can disassemble another programm ?

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    thx,...

    i know that i have to do this first! I am doing this on the other hand...

    My question is how to disasm in C , not what i have to need to know...
    but thank you for your reply! I want to know if there is a special file descriptor or a function like fread()/fgets() to read executables and put the disassembled code into a char array ! this it is!

    I am using Linux and gcc !

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    34

    great..

    thx !!! The question was 'is there a function' ;-) !! So I can't write (silly example

    Code:
    FILE *filer;
    char array[100];
    disasm(array, sizeof(array),filer);
    or something like it ... THX for the ELF-manual ! I WERE looking for something like this ...

    greets, a happy programming demonus!

Popular pages Recent additions subscribe to a feed
Website Security Test