Results 1 to 6 of 6

Thread: assembly language in c

  1. #1
    pasholy
    Guest

    assembly language in c

    Hi,

    does anyone know how to use assembly language in c and what libraries are needed?

    thanks

  2. #2

    Re:assembly language in c

    hmmm, i thought assembly is assembly and c is c, so you can only use one language at a time
    whatdoyougetwhenyoumultiplysixbynine??

  3. #3
    Aaron_Adams
    Guest

    Re:assembly language in c

    Hey pasholy,

    To add inline assembly, all you need to do is include

    __asm__(" foobar");

    For instance;

    unsigned long get_sp(void)
    {
    __asm__("movl %esp %eax");
    }

    Alastair,

    It's actually (somewhat) common practice to use asm and c together. A loop in ASM is a lot faster, so a lot of people will use it for those reasons.

    I have a friend that works for an oil company programming in python and java. He had to write an interpreter in python that takes java code in python code as far as I remember.

  4. #4

    Re:assembly language in c

    fine then........ :P :P :P
    whatdoyougetwhenyoumultiplysixbynine??

  5. #5
    pasholy
    Guest

    Re:assembly language in c

    thanks a lot for that answer. I couldn't find the answer anywhere else.

    The reason why I am asking is that I want to make a cd encryptor. So if I have a large .exe on my cd I don't want to copy the thing to a temp file on my drive, decrypt it, than run it. I also don't want to put the whole thing in ram. I want to link my application with the .exe. So that when the file gets clicked. My application starts and than decides whether to allow the .exe to run. I thought I could do that with assembly, but am not sure how. Is there an easier way for me to do it?

  6. #6
    Aaron_Adams
    Guest

    Re:assembly language in c

    I'm not sure how you would go about doing that. I've never done anything similar, and I'm not overly familiar with assembly either!

    Good luck though!

Similar Threads

  1. Assembly program error on linux
    By omidkamangar in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-29-2006, 12:46 PM
  2. Fish tank assembly
    By mcdougrs in forum General Chat
    Replies: 2
    Last Post: 04-01-2003, 05:09 PM
  3. Assembly Language
    By vikram_nanda in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 03-19-2002, 05:31 PM
  4. which language to learn first?
    By in forum Linux - Software, Applications & Programming
    Replies: 12
    Last Post: 03-13-2002, 10:46 AM
  5. which language
    By agar in forum Linux - Software, Applications & Programming
    Replies: 10
    Last Post: 02-16-2002, 11:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •