Thread: Calling C++ from assembly?

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    Calling C++ from assembly?

    How do you call a C++ (program or function) from an assembly program?

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Posts
    219
    This is a C++ board not an ASM board.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    Re: Calling C++ from assembly?

    Originally posted by Chris361
    How do you call a C++ (program or function) from an assembly program?
    Give us details. Is the "C++ program" compiled? If so, it's the same as an "ASM program". If you're just trying to use C++ code in your ASM program, you might want to consider inline ASM in gcc or something.

    http://flashdaddee.com for all your ASM needs.
    Away.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling an Assembly Function
    By piommi in forum C Programming
    Replies: 4
    Last Post: 12-07-2007, 03:29 AM
  2. calling functions & assembly code
    By Micko in forum C++ Programming
    Replies: 1
    Last Post: 02-25-2004, 03:27 PM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  4. C,C++,Perl,Java
    By brusli in forum C Programming
    Replies: 9
    Last Post: 12-31-2001, 03:35 AM
  5. Calling functions written in assembly?
    By The V. in forum C Programming
    Replies: 5
    Last Post: 10-24-2001, 08:11 PM