Thread: using UML to plan C programs

  1. #1
    Embedded in C...
    Join Date
    Sep 2008
    Basingstoke, Hampshire

    using UML to plan C programs


    I am doing my first major project in C for an embedded platform, with many functions and files involved, and I want to use a similar process to UML used in Java programming, but I can't find any references as to how to acheive this - what diagrams to use etc, as they all seem to be geared towards object oriented program, which C is obviously not.

    Can anyone assist with any tools / techniques / tutorials which could help me out?

    BTW, I haven't used UML before, but I have a reasonable grasp on what some of the diagrams do.


  2. #2
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    A few months back, this very question was asked in the forums with some suggestions. A search through the forums should do the trick for ya.

  3. #3
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    wont you like need something called a flowchart Flowchartand you could use Pseudocode

    i use pseudo code alot and it helps very much .. Flowcharts will be if benefit to ..thou i havnt worke much on them ..there is an old IBM document writting in the 60's ..

    IBM FlowchartingTechniques-GC20-8152-1.pdf
    "I wish i could wish my wishs away"

    "By indirections find directions out" -- William Shakespears

    "Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"

    Mizra -> love = Death...
    RDB(Rocks yooo)..

    Are you ready for the Trix ???

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    I like to use dia to do the actual drawing of diagrams (UML or otherwise). And many of the UML features which apply to object-oriented programming apply to C as well: you still have data that is private, interfaces that are public, and dependencies between sections of your program. I can't suggest any reference in particular, but you should be able to take object-oriented ideas and adopt them to C. I guess it would help if you know an object-oriented language and so know what they're talking about.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    I just suggest to read more and more object modeling and software engineering books until you the big picture what software design is.

    Keyword: OMT

    There is a way to map object-oriented design into non-object-oriented programming.
    Just GET it OFF out my mind!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem
    By gtfoh143 in forum C++ Programming
    Replies: 7
    Last Post: 08-18-2009, 10:44 PM
  2. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  3. How do you plan your programs?
    By endo in forum C++ Programming
    Replies: 7
    Last Post: 03-02-2005, 08:11 PM
  4. Replies: 9
    Last Post: 11-18-2003, 03:46 PM
  5. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM