assembly language in linux
I need program for shared memory in assembly language(nasm).
|
you may want to consider reading "How to ask smart questions" by Eric Raymond.
|
Just use gcc to do the linking for you, or link to the C library, and just use all the shm* functions as normal.
|
Quote:
http://www.catb.org/~esr/faqs/smart-questions.html Sorry, no actual information on the assembler question for the OP. |
Quote:
|
: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... ;) |
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? |
Quote:
don't be this guy:scratch: or this guy:cry: |
Quote:
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. |
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. |
^ Or if you enjoy that kind of low level programming, then you may just want to code in assembler for fun.
|
an excellent book is "Programming from the ground up" by Jonathan Bartlett.
it is available for free online, or for $ in print |
Quote:
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. |