Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gurugio/book_cprogramming
Framework and Plugin design in C
https://github.com/gurugio/book_cprogramming
c software-architecture software-design
Last synced: 2 days ago
JSON representation
Framework and Plugin design in C
- Host: GitHub
- URL: https://github.com/gurugio/book_cprogramming
- Owner: gurugio
- License: gpl-3.0
- Created: 2013-02-15T18:26:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T12:19:09.000Z (2 months ago)
- Last Synced: 2024-12-18T07:03:46.085Z (9 days ago)
- Topics: c, software-architecture, software-design
- Language: C
- Homepage:
- Size: 990 KB
- Stars: 229
- Watchers: 18
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Professional C programming : Framework and plugin design in C
I first met the C language 20 years ago. I have been working with C language for 12 years.
I have read several C programming books, but their purpose is to teach how to start programming in C.
There is no book about program in C practically for a real product.
Fortunately, I have learned good C programming skill when working for companies that have good C programmers and good development process.
I have also seen how great C programmers develop large scale software, from the Linux kernel sources.This document is some part of what I have learned and seen.
For students, this document takes one or two weeks. Please focus on how the C basics, such as function pointer, pointer, macro and etc, are used in the real product.
If you are already a professional C programmer, you could compare the source of this document and your product. I would be happy if you find something that can be applied to your product.Please let me know if you have any tips for practical C programming skills. Please register your tips in the ticket of this repository. I will write a document for it and add here with your name.
*I am not a native English speaker. Please inform me if you find any broken English.*
* First version in Korean: Feb. 12 2019
* Start translation: Feb. 23 2019
* Finish translation: Mar. 12 2019## INDEX
* [Error handling with goto](error_handle.md)
* [Make if-else short with branch table](long-if.md)
* [Make for-loop with macro](foreach.md)
* Implement framework and plugin
* [Object programming in C: make cstring class with C](cstring.md)
* [Introduction](interface.md)
* [Implement unittest framework](unittest.md)
* [Implement unittest for cstring](unittest_cstring.md)
* [Make test case with macro](unittest_cstring2.md)
* Sample project: serial number generator
* [Initial version](serial_step1.md)
* [Implementation the framework and plugin for the serial number generator](serial_step2.md)## TODO
* pdu allocation
* atomic counter => per_cpu counter
* test_and_set_bit_lock
* function pointers -> virtual abstract layer (kernel: virtual filesystem interface)