On Thu, Mar 29, 2007 at 03:16:23PM +0200, Peter 1 Oberparleiter wrote: > Linux on 390 Port <[email protected]> wrote on 29.03.2007 10:02:33: > > How to start with zLinux assembly programming language. Where to get the > > > information like what are the tools required and information about the > > general purpose, control, access & floating point registers. > > This information is for learning purpose. I searched internet but didn't > > > get any information. Please help me. > > Recommended reading: > > z/Architecture Principles of Operations > http://publibz.boulder.ibm.com/epubs/pdf/a2278324.pdf > > zSeries ELF Application Binary Interface Supplement > http://www.ibm.com/servers/eserver/zseries/os/linux/pdf/lzsabi0.pdf > > As for tools: > > How to compile assembler source code file.s: > > gcc file.s -o file > > (gcc calls other tools, but this doesn't need to concern you while you're > a beginner). > > For starters, I'd suggest writing small c-programs and then compiling them > with gcc while specifying option -save-temps. This will get you the > assembler code as generated by gcc in the '.s' file. You can then modify > the .s file and compile it with gcc again.
In addition you might want to have a look at Documentation/s390/Debugging390.txt in the linux kernel sources. Some of the information there is outdated, but it should give you a brief overview. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
