?
Solved

porting inline assembly to gcc

Posted on 2003-03-30
4
Medium Priority
?
332 Views
Last Modified: 2010-04-21
how can I port the following to gcc :

mov   dword ptr returnedValue    , eax

where returnedValue is of type unsigned returnedValue[20]
0
Comment
Question by:drors
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:dimitry
ID: 8246495
I think you can try:
  asm( "movl %eax, returnedValue" );
0
 

Author Comment

by:drors
ID: 8251448
and what if I have this line
mov   dword ptr returnedValue + 4   , eax
0
 
LVL 11

Accepted Solution

by:
dimitry earned 100 total points
ID: 8251877
Then I think it should be:
 asm( "movl %eax, returnedValue+4" );
0
 

Author Comment

by:drors
ID: 8252585
Thanks, in the guidelines they suggest something like that:
movl %eax,4(returnedValue) and it did not work
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question