Go through Linux under programming some chowder

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

To view the assembly code for your own program:

Objdump-s-D./hello


GDB Debug program, related commands. Man GDB


Assembly. The CPU platform is different, the instruction form is different, the compiler used is different, the way is also different. such as 80x86, T, PowerPC and so on.


Libraries: Static libraries and dynamic libraries.

Use AR command to generate static library, input ar rc libtestfunc.a testfunc.o link run.

Dynamic libraries:. So windows. DLL Programming differences


The timer under Linux.


Automatic compilation tool under Linux: Autoconf, Automake


Process: fork, wait, etc functions


Signal Processing: signal function


interprocess communication: Pipelines, shared memory, socket communication, etc.

The pipeline is very simple to use, after creating the anonymous pipeline, we only need to send data from one pipe, and then accept the data from another pipeline.


Multithreading: All data is shared by different threads except the stack space. multiple processes are supported by the Linux kernel itself, while multi-threading requires a corresponding dynamic library (pthread?). For support.

Multithreaded wait function:pthread_join.

multithreading Mutex: Span style= "font-family:arial; font-size:14px; line-height:26px; Text-align:left "> thread mutex is indispensable. Under Linux, the most commonly used tool for writing multithreading is actually pthread_mutex_t. Essentially, it is the same as the mutex under Windows, with almost no difference.


Network programming: TCP/IP protocol stack. Linux under/net/ipv4/net/ipv6 socket




/span>

Related Article

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.