Thread: How Far Should You Go To Use Valgrind?

  1. #31
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    I really doubt that you could point at anything I said and prove that it is a lie; as for looking at the kernel source yes it is big but alot of us learn from source better than lecture. But that is just the beginning....if you want to see how a database works you can look at the source, if you want to see how a top-notch webserver works, the source is there too. FOSS can offer some great educational opportunities at no more cost that some time and learning.

    As for mounting a partition you never mentioned that before, you just said to slap in a live CD and away you go...I still would not advocate coding that way...for one thing you are stuck with the system and coding libs supplied by the live CD whereas with a normal installed system you can install them once and just start using them. The alternative that you suggest would say that you would need to remaster your live CD everytime you needed new libs/sdks installed...still doesn't qualify as an optimal dev environment to me...at least that is what my quarter century of coding is telling me...

    Elysia; I would not suggest anyone "abandon" Windows; sure I haven't needed it in my home for over a decade now but at the end of the day I advocate learning as many different operating systems and dev tools as possible. No single OS is utopian, not Linux and certainly not Windows. However I will also state that knowing them both well will take you farther than just knowing one or the other...
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  2. #32
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by jeffcobb View Post
    Elysia; I would not suggest anyone "abandon" Windows; sure I haven't needed it in my home for over a decade now but at the end of the day I advocate learning as many different operating systems and dev tools as possible. No single OS is utopian, not Linux and certainly not Windows. However I will also state that knowing them both well will take you farther than just knowing one or the other...
    But that is exactly what you suggested in the initial post which sparked this discussion.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #33
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    Quote Originally Posted by Elysia View Post
    But that is exactly what you suggested in the initial post which sparked this discussion.
    In a household with more than a dozen servers, desktops and laptops, I guess I didn't view burning any of them to any particular OS as the abandonment of anything else. I guess the only OS I have abandoned as you put it is OS/2 Warp...

    I saw this less as the student abandoning Windows and more of the student being empowered by Linux because of all of the free tools and such.
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  4. #34
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    But the point is, if the student changes from Windows to Linux, everything changes, not just the tools.
    It's like changing from one school to another. You would have to re-learn everything you knew from scratch.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #35
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Elysia View Post
    But the point is, if the student changes from Windows to Linux, everything changes, not just the tools.
    It's like changing from one school to another. You would have to re-learn everything you knew from scratch.
    That's specious: Apply that to anything else. Suppose Photoshop wasn't available on windows, would you make the same argument to artists who would have to relearn everything on the mac? If this really were the case, people would adapt. Valgrind has GUIs available.

    Anyway, I completely understand your outrage in this specific case, but aren't you tired?
    Last edited by whiteflags; 02-25-2010 at 04:34 PM.

  6. #36
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by whiteflags View Post
    Anyway, I completely understand your outrage in this specific case, but aren't you tired?
    Broken records can make use of "perpetual motion" energy xP
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  7. #37
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    What's the big deal? If Valgrind is so tempting, but you don't want to abandon Windows, just run it in a VM, or borrow somebody's Linux box.

    I have actually done the following:

    Windows application running under Wine running under Valgrind running on Linux running in a VM which is running on Windows XP.

    And it actually finds bugs!
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. erors from Valgrind ,,
    By prakash0104 in forum C Programming
    Replies: 2
    Last Post: 04-05-2009, 07:33 PM
  2. Bug hunting with Valgrind
    By Smjert in forum C Programming
    Replies: 8
    Last Post: 11-06-2008, 04:21 AM
  3. Replies: 1
    Last Post: 12-01-2007, 02:06 AM
  4. Is valgrind always right?
    By g4j31a5 in forum Linux Programming
    Replies: 3
    Last Post: 07-16-2007, 10:39 PM
  5. Valgrind output
    By m_larkin2001 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2006, 02:28 AM