473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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
Apr 7 '08 #1
5 1498
On 8 Apr, 00:54, mbr...@arete.com 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.
Apr 8 '08 #2
On 7 Apr 2008 at 23:54, mb****@arete.com 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.

Apr 8 '08 #3

Antoninus Twink <no****@nospam.invalidwrites:
On 7 Apr 2008 at 23:54, mb****@arete.com 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.

http://www-128.ibm.com/developerwork...cdt/index.html

gives a comparison to VS.

Apr 8 '08 #4
In article <sl*******************@nospam.invalid>,
Antoninus Twink <no****@nospam.invalidwrote:
>On 7 Apr 2008 at 23:54, mb****@arete.com 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.

Apr 8 '08 #5

<mb****@arete.comschrieb im Newsbeitrag
news:c2**********************************@t54g2000 hsg.googlegroups.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.
Apr 8 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MarionEll | last post by:
XML 2003 to Highlight Key Publishing Trend: XSL-FO Tools XSL-FO “Chef’s Tools Exhibition” Slated for 7 p.m. Dec. 10; Premier XML Industry Event Runs Dec. 7-12 in Philadelphia Alexandria,...
0
by: Rick Hower | last post by:
The 'Web Test Tools List' at http://www.softwareqatest.com/qatweb1.html has been updated as of December 1 2003. It now contains more than 280 web test tools, (with descriptions and links...
3
by: sea | last post by:
I had stopped all database services before running the setup program for upgrading from 7.2 to 8.1. During the installation process though, I got a message to the effect saying the tools server...
2
by: sandeep.manthena | last post by:
Hi everyone, Can anyone answers my questions. My server is AIX and is 5.2 and the db2 udb of V 8.1 Fixpak 9. What exactly is the tools catalog for? How it is uaseful in performing automatic...
4
by: Michael | last post by:
Hi! (OK, slightly silly subject line :) I'm extremely pleased to say - Kamaelia 0.4.0 has been released! What's New & Changed? =====================
3
by: Student | last post by:
Hi all, While compiling a program I had this message : tools.o(.data+0x0): multiple definition of `VAR_1' main.o(.data+0x0): first defined here tools.o(.data+0x4): multiple definition of...
19
by: dba_222 | last post by:
Dear Experts, I've worked with Oracle since 1995. I have gone very deep into many of the Oracle features, including sqlloader, and export/import. And I've done data modelling even longer. ...
0
by: L'eau Prosper Research | last post by:
Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases new TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set. L'eau Prosper Market...
0
by: L'eau Prosper Research | last post by:
NEW TradeStation 8 Add-on - L'eau Prosper Market Manipulation Profiling Tools Set By L'eau Prosper Research Press Release: L'eau Prosper Research (Website: http://www.leauprosper.com) releases...
4
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.