OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 8:03 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Gcc inline assembly using Cross compiler
PostPosted: Wed Jun 07, 2017 11:13 am 
Offline
Member
Member

Joined: Sat Apr 29, 2017 6:56 am
Posts: 26
Hello Guys is there easy way of form of inline assembly to access parameters. Any form that works for now (gcc inline assembly is complicated). Any suggestion or resources to learn quickly of inline assembly and in depth understanding of inline assembly would be appreciated.

function foo(1,2);

foo( a,b){
accessing arguments in inline assembly and returning values
}


Top
 Profile  
 
 Post subject: Re: Gcc inline assembly using Cross compiler
PostPosted: Wed Jun 07, 2017 1:41 pm 
Offline
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
Inline_Assembly

Or am I missing anything?

_________________
managarm


Top
 Profile  
 
 Post subject: Re: Gcc inline assembly using Cross compiler
PostPosted: Wed Jun 07, 2017 1:59 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
You probably want http://wiki.osdev.org/System_V_ABI

- Monk


Top
 Profile  
 
 Post subject: Re: Gcc inline assembly using Cross compiler
PostPosted: Thu Jun 08, 2017 1:08 am 
Offline
Member
Member

Joined: Sat Apr 29, 2017 6:56 am
Posts: 26
Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 108 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group