Programming From The Ground Up

Programming From The Ground Up

作者:Jonathan Bartlett

出版社:Bartlett Publishing

出版年:2004-07-31

评分:9.3

ISBN:9780975283844

所属分类:行业好书

书刊介绍

内容简介

Programming from the Ground Up is an introduction to programming using assembly language on the Linux platform for x86 machines.It is a great book for novices who are just learning to program as well as for intermediates who have never learned or mastered assembly language programming.It covers many topics skipped by other similar books, including memory management, debugging, interfacing with C, dynamic libraries, and even a bit on GUI programming.

精彩摘录

Oneofthegreatestprogrammers,DonaldKnuth,describesprogrammingnotastellingacomputerhowtodosomething,buttellingapersonhowtheywouldinstructacomputertodosomething.Inourcase,thekernelisLinux.Now,thekernelallbyitselfwon'tdoanything.Youcan'tevenbootupacomputerwithjustakernel.Thinkofthekernelasthewaterpipesforahouse.Withoutthepipes,thefaucetswon'twork,butthepipesareprettyuselessiftherearenofaucets.Together,theusersapplications(fromtheGNUprojectandotherplaces)andthekernel(Linux)makeuptheentireoperatingsystem,GNU/Linux.

——引自第1页


Sourcecodeisthehuman-readableformofaprogram.Inordertotransformitintoaprogramthatacomputercanrun,weneedtoassembleandlinkit.Thefirststepistoassembleit.Assemblingistheprocessthattransformswhatyoutypedintoinstructionsforthemachine.Themachineitselfonlyreadssetsofnumbers,buthumanspreferwords.Anassemblylanguageisamorehuman-readableformoftheinstructionsacomputerunderstands.Assembletransformsthehuman-readablefileintoamachine-readableone.Toassembletheprogramtypeinthecommandasexit.s-oexit.oasisthecommandwhichrunstheassembler,exit.sisthesourcefile,and-oexit.otellstheassembletoputit’soutputinthefileexit.o.exit.oisanobjectfile.Anobjectfileiscodethatisinthemachine’slang...

——引自第20页

相关推荐

微信二维码