flat assembler
Message board for the users of flat assembler.

Index > Linux > linux command line args

Author
Thread Post new topic Reply to topic
cthug



Joined: 03 Apr 2009
Posts: 36
Location: /home/Australia
cthug
How do you get the command line arguments given to your program in linux. Are they pushed onto the stack, sys call?

_________________
"There are only two industries that refer to their customers as 'users'." Edward Tufte
Post 16 Feb 2010, 11:13
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17664
Location: In your JS exploiting you and your system
revolution
Post 16 Feb 2010, 11:21
View user's profile Send private message Visit poster's website Reply with quote
cthug



Joined: 03 Apr 2009
Posts: 36
Location: /home/Australia
cthug
Yes very helpful, thank you. (I must not have look very hard Smile).
Post 16 Feb 2010, 11:31
View user's profile Send private message Visit poster's website Reply with quote
asmmsa



Joined: 06 Feb 2010
Posts: 45
asmmsa
depends on distro, linux is C-based, so lowest level programming is not asm, but C.

yeah that sucks, because you have to write c code, to make asm operations that fit C concept.
Post 16 Feb 2010, 11:53
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
Unlike Windows, which is entirely written in MASM assembly.
Post 16 Feb 2010, 13:12
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Windows has defined a clear binary interface for every platform it supports, POSIX doesn't have one.

GNU/Linux does have a de-facto standard, but AFAIK it is not defined anywhere.
Post 16 Feb 2010, 13:33
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3043
Location: vpcmipstrm
bitRAKE
Post 16 Feb 2010, 17:39
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.