Linux Development Application Commands

Source: Internet
Author: User

Some development application commands for Linux (Standard gun assembler)

The As command is the standard GNU assembler program. As command to read and assemble the specified file (this file ends with. s) If you do not specify a file, the As command reads and assembles the standard input, and by default, he stores its output in a file with an. o extension, and runs the as command to install the Binutils package

As "option" "Asmfile"

-A display list

-AC Ignore failure conditions

-ad Ignore Debug commands

-ah includes advanced source

-al including assembly

-as include symbols

-F skipping whitespace and annotation preprocessing

-D Generating Assembly debug information

-J Program Overflow No alarm

-R Delete source file after generating target file

--statistics Printing static variable information

-W suppresses the display of all warnings

--warn Show All warnings

As-o hello.o HELLO.S Assembler can use the LD command to connect an executable program after it has successfully compiled and generated the target code through gas NASM

Ld-s-O Hello hello.o

Run the program./hello Hello, Word: \ n

Using the default assembly method to produce a target file named hello.o

The/t format file code is as follows:

Hello.s

. Data Segment Declaration

Msg:. String "hello,word!\\n" to output

Len =. -Msg String length

. text

. Global _start Specify the entry function

_start: Displays a string on the screen

MOV1 $len,%edx parameter 3: string length

MOV1 $msg,%exc parameter two, the string to display

Mov1 $1,%ebx parameter 1, file description

Mov1 $4,%eax, system call number

int $0x50 calling kernel function

Exit program

MOV1,%EBX parameter one: Exit code

MOV1 $,%eax system call number

int $0x80 calling kernel function

NASM Assembler (a 80*86 assembler designed for portability and modularity that supports a considerable number of target file formats)

Nasm-f "format" "FileName" "Options" "-O" Output "

-F "Format" specifies the file format of the output

-G activation Debugging information

-E Enter the error message into the file

-S input the error message to ' stdout '

-I include file search path

-P with a file included

-D pre-defined a macro

-U un-defining a macro

-E preprocessing only

-A does not require preprocessing

-L Generate list file

gcc:c/c++ compiler

make maintain and compile software or packages

GDB Gun Debugger (This command can be used for full control and checking of running programs)

GDB Internal command .... I don't know, it's too much to fight.

Gdbserser Remote gun Server

autoconf Generating Configuration scripts

Autoheader Generating Module header file for configure

autoreconf Update the configuration file that has been generated

AutoScan Produce preliminary configure.in files

AutoUpdate Update configure.in file

Automake automatic generation of makefile.in tools (generating preliminary configure.in files)

Aclocal Generating aclocal.m4 files (update configure.in file)

Configure generating Makefile files (tools to automatically generate Makefile.in)

Linux Development Application Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.