LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   assembly language in linux (https://www.linuxquestions.org/questions/programming-9/assembly-language-in-linux-481475/)

herbertgnanaraja 09-07-2006 11:10 PM

assembly language in linux
 
I need program for shared memory in assembly language(nasm).

jonaskoelker 09-10-2006 07:58 AM

you may want to consider reading "How to ask smart questions" by Eric Raymond.

95se 09-10-2006 05:03 PM

Just use gcc to do the linking for you, or link to the C library, and just use all the shm* functions as normal.

JZL240I-U 09-12-2006 09:03 AM

Quote:

Originally Posted by jonaskoelker
you may want to consider reading "How to ask smart questions" by Eric Raymond.

That is "How To Ask Questions The Smart Way" by Eric Steven Raymond and Rick Moen. Accurate quotations are so much nicer, don't you think ;).
http://www.catb.org/~esr/faqs/smart-questions.html

Sorry, no actual information on the assembler question for the OP.

jonaskoelker 09-14-2006 01:29 AM

Quote:

Accurate quotations are so much nicer, don't you think.
They certainly are, so god bless those who can remember all the details or bother to look them up :P

JZL240I-U 09-14-2006 01:43 AM

:D on me.

But I remember a thread where Rick Moen complained about a posting where some guy regaled him with quotations from his own (Rick Moen's) article without knowing that it was not just S. Raymond alone. I thought that was a legitimate complaint.

And in case the OP should want to search, it is so much easier to find with the correct title, so...

Oh well, since I had it bookmarked anyhow...

;)

archtoad6 09-16-2006 12:45 PM

Here's how I link it:
How To Ask Questions the Smart Way:
http://linuxmafia.com/faq/Essays/smart-questions.html
to Moen's site. Lots of other goodies there.

I was quite interested when I discovered there is a co-author. In fairness, however, ESR was for many years the listed author, even though they collaborated from the beginning. Apparently they decided to only list ESR, since he was acting as maintainer (per recent RM e-mail). He mentions having his own words quoted back to him as the impetus for (finally) adding his name too.

BTW, JZL240I-U, do you have link to the thread you mention?

gendoikari 09-17-2006 01:19 PM

Quote:

Originally Posted by herbertgnanaraja
I need program for shared memory in assembly language(nasm).

Try "linux programming for dummies".
don't be this guy:scratch: or this guy:cry:

JZL240I-U 09-18-2006 03:28 AM

Quote:

Originally Posted by archtoad6
...BTW, JZL240I-U, do you have link to the thread you mention?

:D http://www.linuxquestions.org/questi...46#post1921646 We do have a search function available at this site :p ;)

P.S.: I had to think for some time too to remember that it came from here, and just searching for "moen" gives 19 pages with results, so you are absolved after all (;) again).

P.P.S.: LQ is quite a site, really.

sundialsvcs 09-18-2006 03:21 PM

Let's get back to the original question. Somehow. We're ribbing this poor soul and English may or may not be his native language!

In the real world, almost no programming these days is done "in assembler." There might be some assembly-code sections in a "C" program, but almost nothing is written where the entire input-file consists of assembler.

The reason is simple: "95% of any program is uninteresting. So, why write all that in assembler?" It won't be faster. It won't be better code. And even if it is, it won't make any difference.

So, assembler is used for subroutines or even inline statements, to do very machine-specific things that cannot be done any other way.

95se 09-18-2006 06:02 PM

^ Or if you enjoy that kind of low level programming, then you may just want to code in assembler for fun.

xhi 09-19-2006 12:48 PM

an excellent book is "Programming from the ground up" by Jonathan Bartlett.

it is available for free online, or for $ in print

con 09-21-2006 03:52 AM

Quote:

Originally Posted by xhi
an excellent book is "Programming from the ground up" by Jonathan Bartlett.

it is available for free online, or for $ in print

Thanks for sharing, I've been looking for a book like that on assembly for a long time. Thanks!:)
Here's the link if anyone else is intressted http://savannah.nongnu.org/projects/pgubook/.


All times are GMT -5. The time now is 08:27 PM.