tools for C and C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mbrown@arete.com

    tools for C and C++

    I'm fairly new to C, and newer to Linux. I currently do all of my
    development on a windows machine using Visual Studio, then use Make to
    build the code on Linux. Obviously this deprives me of a lot of
    debugging tools. I'm also used to having a variety of tools for
    refactoring and unit testing, but these aren't concepts that are
    familiar at my company.

    Any advice on good tools for refactoring and unit testing C code, and
    for debugging on Linux ?

    Also, any books on specifically about writing good code in C?
    Thanks
    Matt Brown
  • William Pursell

    #2
    Re: tools for C and C++

    On 8 Apr, 00:54, mbr...@arete.co m wrote:
    Any advice on good tools for refactoring and unit testing C code, and
    for debugging on Linux ?
    For unit testing, try check and cunit. Check works very well
    with the autotools, but it is (fairly) non-trivial to become
    proficient with the autotools. If you can get through the
    initial learning phase, you may at least stop cursing them even
    if you never come to love them.

    You will get better results in a Linux group, though, and
    I would advise you to ask your question there.

    Comment

    • Antoninus Twink

      #3
      Re: tools for C and C++

      On 7 Apr 2008 at 23:54, mbrown@arete.co m wrote:
      I'm fairly new to C, and newer to Linux. I currently do all of my
      development on a windows machine using Visual Studio, then use Make to
      build the code on Linux. Obviously this deprives me of a lot of
      debugging tools. I'm also used to having a variety of tools for
      refactoring and unit testing, but these aren't concepts that are
      familiar at my company.
      >
      Any advice on good tools for refactoring and unit testing C code, and
      for debugging on Linux ?
      For debugging, gdb is the first and last word. It'll take a little while
      to get used to it, but once you do it's a real powerhouse.

      Comment

      • Richard

        #4
        Re: tools for C and C++


        Antoninus Twink <nospam@nospam. invalidwrites:
        On 7 Apr 2008 at 23:54, mbrown@arete.co m wrote:
        >I'm fairly new to C, and newer to Linux. I currently do all of my
        >development on a windows machine using Visual Studio, then use Make to
        >build the code on Linux. Obviously this deprives me of a lot of
        >debugging tools. I'm also used to having a variety of tools for
        >refactoring and unit testing, but these aren't concepts that are
        >familiar at my company.
        >>
        >Any advice on good tools for refactoring and unit testing C code, and
        >for debugging on Linux ?
        >
        For debugging, gdb is the first and last word. It'll take a little while
        to get used to it, but once you do it's a real powerhouse.
        I suspect his best bet would be Eclipse. Personally I prefer
        emacs/gdb/gud most of the time but only because of my general abhorrence
        for Java based IDEs which use up 20 trillion gigabytes.



        gives a comparison to VS.



        Comment

        • Kenny McCormack

          #5
          Re: tools for C and C++

          In article <slrnfvm7qi.o3g .nospam@nospam. invalid>,
          Antoninus Twink <nospam@nospam. invalidwrote:
          >On 7 Apr 2008 at 23:54, mbrown@arete.co m wrote:
          >I'm fairly new to C, and newer to Linux. I currently do all of my
          >development on a windows machine using Visual Studio, then use Make to
          >build the code on Linux. Obviously this deprives me of a lot of
          >debugging tools. I'm also used to having a variety of tools for
          >refactoring and unit testing, but these aren't concepts that are
          >familiar at my company.
          >>
          >Any advice on good tools for refactoring and unit testing C code, and
          >for debugging on Linux ?
          >
          >For debugging, gdb is the first and last word. It'll take a little while
          >to get used to it, but once you do it's a real powerhouse.
          >
          But always keep in mind that nobody here uses debuggers.

          Comment

          • copx

            #6
            Re: tools for C and C++


            <mbrown@arete.c omschrieb im Newsbeitrag
            news:c208c583-cbb1-40b6-b3c9-bdd1a635bde7@t5 4g2000hsg.googl egroups.com...
            [snip]
            Any advice on good tools for refactoring and unit testing C code, and
            for debugging on Linux ?
            [snip]

            There are only two reason why I boot into Linux:

            1. Porting software

            2. Valgrind

            Valgrind is the best thing since sliced bread when it comes to debugging C
            software. It detects all those nasty memory management bugs: invalid
            reads/writes, leaks, etc. This tool is so useful because it is hard to
            detect those bugs otherwise. If your program crashes randomly you are
            probably corrupting the memory somewhere, the easiest way to find the cause
            is valgrind.


            Comment

            Working...