LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-11-2017, 04:48 PM   #1
Fractal Cat
LQ Newbie
 
Registered: Jul 2017
Posts: 8

Rep: Reputation: Disabled
Linux Kernel


Hi,

Many years ago I used to have an Amiga computer and enjoyed programming in Assembly language. To help programmers Commodore released the ROM Kernel reference manuals that detailed all the methods of the kernel and which registers were involved and their values. Is there anything like that in Linux ? If there isn't then perhaps there should be.

FC.
 
Old 08-11-2017, 09:38 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,873

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Not sure what you are asking exactly. All of the kernel source code is available at kernel.org. I assume that this is still true. https://www.linuxquestions.org/quest...sembly-238058/ so you should be able to take this code and convert it

Or programs maybe. https://stackoverflow.com/questions/...-assembly-code

Linux has a wealth of tools available usually. Some are dependent on many other things so older stuff may not easily work with new stuff for example.

I have always wondered why linux doesn't create an assembly version of the kernel. See the guy at MenuetOS for some neat work.

Don't forget NASM. And tutorials like this. http://asmtutor.com/#lesson1

https://www.ibm.com/developerworks/l...asm/index.html

Last edited by jefro; 08-11-2017 at 09:39 PM.
 
1 members found this post helpful.
Old 08-11-2017, 11:03 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,236

Rep: Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979
Eg http://syscalls.kernelgrok.com
 
1 members found this post helpful.
Old 08-11-2017, 11:40 PM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 996
Blog Entries: 11

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Arrow wiki

Yup, kernel.org&..! lmgt?fy: wiki linux syscalls->kernelAPI Prior thread: books.
Do you prefer paper books? Or are online docs and .pdf's OK? (old ok!)
http://www.digilife.be/quickreferenc...0reference.pdf
https://www.cs.columbia.edu/~junfeng...intr-linux.pdf
I always get mine from local public library! (for UnixCLI on my $20 netbook)
FUN, eh? Link heaven
 
1 members found this post helpful.
Old 08-12-2017, 09:47 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,450
Blog Entries: 4

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915
Yes, unlike the Amiga OS, Linux is open source. You have access, not only to a description of how the various kernels work, but to the actual source-code itself.
 
Old 08-12-2017, 10:39 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,565

Rep: Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811Reputation: 2811
yes, I had a book (more than 20 years ago) which explained the C64 "kernel" and "basic" ROMs, but that was 8 kB or something like that.
Now the kernel of a modern linux is measured in MBs, it has modules and knows not only a single hardware, but a huge amount of different devices - and has a lot of features. The code mainly written in C, therefore usually no registers and similar informations available. And yes, it is on the net, you can browse, download and do not need to buy, just need to learn....
 
1 members found this post helpful.
  


Reply


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
LXer: Linux Kernel 3.19 Has Reached To End With Last Release Kernel 3.19.8, Install/Upgrade Kernel 3 LXer Syndicated Linux News 0 05-15-2015 12:03 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 AM.

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