Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

porting inline assembly to gcc

how can I port the following to gcc :

mov   dword ptr returnedValue    , eax

where returnedValue is of type unsigned returnedValue[20]
0
drors
Asked:
drors
  • 2
  • 2
1 Solution
 
dimitryCommented:
I think you can try:
  asm( "movl %eax, returnedValue" );
0
 
drorsAuthor Commented:
and what if I have this line
mov   dword ptr returnedValue + 4   , eax
0
 
dimitryCommented:
Then I think it should be:
 asm( "movl %eax, returnedValue+4" );
0
 
drorsAuthor Commented:
Thanks, in the guidelines they suggest something like that:
movl %eax,4(returnedValue) and it did not work
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now