Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-13-2009, 12:20 AM   #31
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Original Poster
Rep: Reputation: 42

I've written it out again, and gone through it step by step and understand every little part of it, now. Thanks for your help, it really did point things out that I didn't think of.
C recursive programs are so much simpler.
I was right about the arguments, though ... it doesn't pushl $4, %esp for the inner functions, and it's not just the pushl %ebp, %esp and pop %ebp, either. It's just taken care of because of the way it's structured ... it's all just taken back to where it starts in _start, and then the pushl $4, %esp is used to finished up with the stack and that first pushed argument. Now it's as straightforward as I thought it was when I first saw it.

Last edited by joeBuffer; 08-13-2009 at 12:21 AM.
Old 08-16-2009, 10:36 PM   #32
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Original Poster
Rep: Reputation: 42
I was going to add, also, that this book did end up being a good introductory book. It's easy to follow (mostly), and it's full of information.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly Program Question?? Nejad Programming 16 12-30-2008 11:54 AM
BSD: Problems executing an assembly program BiThian Programming 7 01-10-2007 11:40 AM
hash routine into assembly program rblampain Linux - Security 3 08-06-2005 01:49 AM
Please help me with my assembly program flamesrock Programming 2 01-30-2005 10:27 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration