473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Calling assembly from C++ and vice versa

How do I call assembly code from C++ code and vice versa? Thanks for
the help!!!

Sep 18 '05 #1
5 2001
> How do I call assembly code from C++ code and vice versa? Thanks for
the help!!!


The topic is
- platform dependent
- assembler dependent
- compiler dependent

The general solution is: read the assembler and / or compiler
documentations.

Ben
Sep 18 '05 #2
If you are using the microsoft compiler you can use the expression like
_asm {
your assembly code here
}
and compile your code by writing this piece anywhere inside the
function body

Sep 18 '05 #3
I'm using Dev-Cpp.

Sep 18 '05 #4
Protoman wrote:
I'm using Dev-Cpp.


This is the forum for Dev-Cpp:
http://sourceforge.net/forum/forum.php?forum_id=48211
--
Derek
Sep 18 '05 #5

"Protoman" <Pr**********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
How do I call assembly code from C++ code and vice versa? Thanks for
the help!!!


Interfacing to assembler:
www.digitalmars.com/ctg/ctgAsm.html

Inline assembler:
www.digitalmars.com/ctg/ctgInlineAsm.html

-Walter
www.digitalmars.com C, C++, D compilers
Sep 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dharmendra Singh | last post by:
Hi I'm using .Net(C#) and working on the form(Screen) which have text boxes for both arabic and english data to store. So i want to change the language at run time from arabic to english and...
4
by: Chris Gordon-Smith | last post by:
I am tying to call a Pascal function from C++, and vice versa. Does anyone know how to do this, or where detailed information on this topic can be found? For the C++ to Pascal call I have...
2
by: Ken Durden | last post by:
Are there any plans in a future release of .NET to allow Managed C++ to co-exist in the same assembly with C# code? The reason I ask is that I keep running into the problem where conceptually...
1
by: Michael Moreno | last post by:
Hello, I have been faced with an assembly versionning problem that I could not solve in two days and would appreciate any help. Here is what I have: C# Exe "Exe" that uses Win32 COM DLL ...
0
by: Aziz Paracha | last post by:
Hi: I am very new to .NET web services. I have a situation here; I want a web service that will communicate with plain ASP page. It will call ASP page with some query string variables, the ASP...
2
by: john | last post by:
Maybe I haven't had that "a-ha" moment yet, but I think the new approach to web projects is a step in the wrong direction. My main beef is that control over the assembly generation process has...
6
by: myname | last post by:
i need help with referencing variables from php to a javascript or vice versa. my pages are written in php primarily. i needed a user response - therefore i used javascript and used confirm() to...
1
by: Ron M. Newman | last post by:
Hi, I have an assembly I created. I'd like to refer to it from another assembly. However, when I pick the "dll" for the reference I was wonder whether I should choose the debug or release...
6
by: ranin02 | last post by:
Hi, I have a COM method that is called from VBA. This COM method in turn calls CoCreateInstance on a class that is a .NET class with a COM wrapper around it. This all works fine. However,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.