LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2010, 04:44 PM   #1
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
C Programming Design


I'm looking for some article, tutorial or book on how to structure C code for large programs. Best would be something aimed at the kernel-level ("kernel" not restricted to the Linux kernel itself), taking into account the various low-level mechanisms that exist when designing something (e.g. threads, signals) focusing mainly on design and not on the semantics of the code. But even something at the application-level would be useful for me. I am not in any position to write production-quality code, but would like to learn better practices for maintainability and creating context between functionality needs and implementation techniques. I'm not looking for something that explains the semantics of C, meaning pointers, bitmasks, function pointers, but rather something that explains how their combination can be used to accomplish certain tasks. An example is polymorphism, which is enabled through function pointer tables, or the use of setjmp() and longjmp() to enable exception handling.

Has anyone come across such a document? I've found a few things online, but they're not as comprehensive as I'd like, such as:

http://www.freetype.org/david/reliable-c.html
http://www.cprogramming.com/tutorial.html

*Edit, maybe this thread would be better of in the programming forum... *sigh*

-Alex

Last edited by student04; 09-16-2010 at 04:45 PM.
 
Old 09-16-2010, 04:51 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Object-Oriented Programming With ANSI C
 
Old 09-16-2010, 04:53 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-16-2010, 06:24 PM   #4
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Original Poster
Rep: Reputation: 34
XavierP - thanks.

dugan - funny how my undergrad school is RIT and your link is a book written by a professor there (is that irony or what?). I'll take a look, thanks.

-Alex
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to design multiple timeout in Socket Programming. lisa000 Programming 1 10-22-2007 11:12 PM
help on web design and back end programming tools amolgupta Programming 7 02-21-2006 02:12 PM
Which Distro for Programming and Web design? jacook Linux - Distributions 1 12-01-2005 03:00 AM
Web Design Programming Sub-Forum Boffy LQ Suggestions & Feedback 5 09-20-2004 02:20 AM
second opinion on programming/design/usability niehls Programming 2 01-30-2003 05:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration