<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.emilmont.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.emilmont.net/feed.php">
        <title>emilmont's notebook</title>
        <description></description>
        <link>http://www.emilmont.net/</link>
        <image rdf:resource="http://www.emilmont.net/lib/images/favicon.ico" />
       <dc:date>2010-09-10T13:42:51-04:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=tools:code_coverage&amp;rev=1284029765&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=tools:function_call_trace&amp;rev=1283870863&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=tools:dwarf&amp;rev=1283688629&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=c:index&amp;rev=1283422284&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=tools:gdb&amp;rev=1282663891&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=embedded:os:rtos&amp;rev=1282257398&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.emilmont.net/doku.php?id=java:basic&amp;rev=1281966822&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.emilmont.net/lib/images/favicon.ico">
        <title>emilmont's notebook</title>
        <link>http://www.emilmont.net/</link>
        <url>http://www.emilmont.net/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.emilmont.net/doku.php?id=tools:code_coverage&amp;rev=1284029765&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-09-09T06:56:05-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>Code Coverage</title>
        <link>http://www.emilmont.net/doku.php?id=tools:code_coverage&amp;rev=1284029765&amp;do=diff</link>
        <description>Makefile:


CC_FLAGS = -gdwarf-2 -static -fprofile-arcs -ftest-coverage
LD_LIBS = -lgcov



For each file:

	*  At compile time a .gcno file is generated. It contains information to reconstruct the basic block graphs and assign source line numbers to blocks.
	*  At run tine a .gcda file is generated. It contains arc transition counts, and some summary information.</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=tools:function_call_trace&amp;rev=1283870863&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-09-07T10:47:43-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>Function Call Trace</title>
        <link>http://www.emilmont.net/doku.php?id=tools:function_call_trace&amp;rev=1283870863&amp;do=diff</link>
        <description>Notes about the article: Visualize function calls with Graphviz

Basically the two fundamental changes for an instrumented application are:

	*  compile each module to be tracked with: -gdwarf-2 -O0 -finstrument-functions
	*  link the executable with the following module</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=tools:dwarf&amp;rev=1283688629&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-09-05T08:10:29-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>DWARF</title>
        <link>http://www.emilmont.net/doku.php?id=tools:dwarf&amp;rev=1283688629&amp;do=diff</link>
        <description>Documents:

	*  Executable and Linking Format (ELF) Specification
	*  DWARF 2.0
	*  Introduction to the DWARF Debugging Format
	*  DWARF 2 Debugging Information


Code:

	*  libdwarf
	*  python devtools.dwarf 
	*  debug_line Reader in Java

GCC

Produce debugging information in DWARF format (if that is supported). This is the format used by DBX on IRIX 6. 
Note that with DWARF version 2 some ports require, and will always use, some non-conflicting DWARF 3 extensions in the unwind tables.


-gdwa…</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=c:index&amp;rev=1283422284&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-09-02T06:11:24-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>C</title>
        <link>http://www.emilmont.net/doku.php?id=c:index&amp;rev=1283422284&amp;do=diff</link>
        <description>[C]
Notes about the C: programming language, frameworks and libraries:

c index







External links:

	*  C standard
		*  Initialization

	*  Programming in C
	*  UNIX::interfaces&amp;headers
	*  Algorithms</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=tools:gdb&amp;rev=1282663891&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-24T11:31:31-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>GDB</title>
        <link>http://www.emilmont.net/doku.php?id=tools:gdb&amp;rev=1282663891&amp;do=diff</link>
        <description>*  Howto: Porting the GNU Debugger
	*  GDB internals
	*  GDB Internals - A guide to the internals of the GNU debugger
	*  ptrace
	*  man

Debug Session: Segmentation Fault

How to get the stack trace of a program that causes a segmentation fault:


gdb --args my_prog arg1 arg2 ...

(gdb) run

Program received signal SIGSEGV, Segmentation fault
...

(gdb) backtrace</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=embedded:os:rtos&amp;rev=1282257398&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-19T18:36:38-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>RTOS</title>
        <link>http://www.emilmont.net/doku.php?id=embedded:os:rtos&amp;rev=1282257398&amp;do=diff</link>
        <description>*  ChibiOS/RT
	*  FreeRTOS
	*  Atomthreads
	*  FunkOS
	*  SDPOS


@see: List of real-time operating systems

Embedded,
	OS,
	RealTime</description>
    </item>
    <item rdf:about="http://www.emilmont.net/doku.php?id=java:basic&amp;rev=1281966822&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-16T09:53:42-04:00</dc:date>
        <dc:creator>Emilio Monti</dc:creator>
        <title>Basic</title>
        <link>http://www.emilmont.net/doku.php?id=java:basic&amp;rev=1281966822&amp;do=diff</link>
        <description>Compile

To compile a bunch of java files not organized in a package, for each file:


javac -classpath . filename.java



Launching Java Applications

To launch the main static function of a {Class} inside a {package}, using the jar libraries (lib1.jar, lib2.jar) and a native library in the same directory.</description>
    </item>
</rdf:RDF>
