<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Linux vs Windows]]></title><description><![CDATA[<p>Hallo ihrs,</p>
<p>irgendwie ist mir grad aufgefallen, das ich noch eine frage habe.<br />
mein programm läuft unter Visual C++ in 2 minuten ab.<br />
unter linux (suse 10.0) braucht es aber 20 minuten.</p>
<p>gibt es dafür einen grund? z.b. langsamere standard libraries?</p>
<p>ich danke nocheinmal,<br />
liebe grüße,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157417/linux-vs-windows</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 02:30:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157417.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Aug 2006 13:56:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 13:56:33 GMT]]></title><description><![CDATA[<p>Hallo ihrs,</p>
<p>irgendwie ist mir grad aufgefallen, das ich noch eine frage habe.<br />
mein programm läuft unter Visual C++ in 2 minuten ab.<br />
unter linux (suse 10.0) braucht es aber 20 minuten.</p>
<p>gibt es dafür einen grund? z.b. langsamere standard libraries?</p>
<p>ich danke nocheinmal,<br />
liebe grüße,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124461</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 13:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:01:46 GMT]]></title><description><![CDATA[<p>Zeig doch mal dein programm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124468</guid><dc:creator><![CDATA[asdasdasd]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:01:46 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:21:20 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich würde gerne das programm zeigen...aber so 100pro kann ichs nicht machen.<br />
aber hier ein kleiner teil davon...der der so zeitkonsumierend ist:</p>
<pre><code>for(i=0;i&lt;size;i++)
	for(int k=0;k&lt;i;k++) {
		for(int n=0;n&lt;size;n++){
			if( i!=n &amp;&amp; k!=n ){
				if( _graph.get_edge(i,n)&gt;0 &amp;&amp; _graph.get_edge(k,n)&gt;0 )
					_comm_neighbors[i][k]++;
				else if ( _graph.get_edge(i,n)&gt;0 || _graph.get_edge(k,n)&gt;0 )
					_non_comm_neighbors[i][k]++;
			}
		}
</code></pre>
<p>_graph.get_edge(i,j) liefert einen integer adjazenz wert einer kante im graphen, und greift dabei auf eine matrix (typ: vector of vector of short) per indices zu.</p>
<p>_comm_neighbors[i][j] ist eine matrix (typ: vector of vector of short) und wird vorher mit 0 initialisiert.</p>
<p>das programm läuft auf einer problemgröße 5575 bei mir auf dem PC in Visual C++ in 1,5h ... am Uni Suse 10.0 Rechner in 15h</p>
<p>jetzt vielleicht eine idee?<br />
liebe grüße,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124484</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:27:26 GMT]]></title><description><![CDATA[<p>hast bei suse nicht mit -O3 compiliert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124489</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:33:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>mmhh...davon hab ich noch nie was gehört um ehrlich zu sein.<br />
ich hab einfach mit flag -o kompiliert.<br />
bringt denn -o3 viel mehr? oder was ist der unterschied?<br />
dank,<br />
gruß,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124492</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:37:30 GMT]]></title><description><![CDATA[<p>sebastian_v_b schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>mmhh...davon hab ich noch nie was gehört um ehrlich zu sein.<br />
ich hab einfach mit flag -o kompiliert.<br />
bringt denn -o3 viel mehr? oder was ist der unterschied?<br />
dank,<br />
gruß,<br />
Sebastian</p>
</blockquote>
<p>-O oder -o?</p>
<p><a href="http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html#Optimize-Options" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html#Optimize-Options</a></p>
<p>-O3<br />
Optimize yet more. -O3 turns on all optimizations specified by -O2 and also turns on the -finline-functions, -funswitch-loops and -fgcse-after-reload options.</p>
<p>du musst auf jeden fall zulassen, daß inline-funktionen auch inline werden. aber das haste ja schon, wenn du -O benutzt hast. hättest du das nicht, würde es so einen riesen-faktor der langsamkeit begründen können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124499</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:45:11 GMT]]></title><description><![CDATA[<p>Man!! mal wieder den nagel auf den kopf getroffen!<br />
ich habe tatsächlich immer -o benutz statt -O ... geschweige denn -O3</p>
<p>nun bekomme ich aber ganz schreckliche compiler fehler, die ich vorher nicht hatte:</p>
<pre><code>collect2: ld terminated with signal 11 [Speicherzugriffsfehler]
graphTest(.text+0x40b8): In function `Graph::delete_vertex(int)':
: multiple definition of `Graph::delete_vertex(int)'
graph.o(.text+0x3f78): first defined here
graphTest(.text+0x3550): In function `Graph::get_vertex_name(int) const':
: multiple definition of `Graph::get_vertex_name(int) const'
graph.o(.text+0x3410): first defined here
graphTest(.text+0x3766): In function `Graph::add_vertex(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int)':
: multiple definition of `Graph::add_vertex(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int)'
graph.o(.text+0x3626): first defined here
graphTest(.text+0x3360): In function `Graph::get_edge_weight(int, int) const':
: multiple definition of `Graph::get_edge_weight(int, int) const'
graph.o(.text+0x3220): first defined here
graphTest(.text+0x3ec): In function `Graph::Graph[in-charge](int, double)':
: multiple definition of `Graph::Graph[in-charge](int, double)'
graph.o(.text+0x2ac): first defined here
</code></pre>
<p>vielleicht hat das was mit dem makefile zu tun??<br />
mein makefile sieht wie folgt aus:</p>
<pre><code>ClusterEditing: problemKernelEditOperationsTest.cpp problemKernelEditOperations.o editGraphTest.cpp editGraph.o graphTest.cpp graph.o graphException.o
	g++ graphException.o graph.o -O graphTest -idirafter . graphTest.cpp
	g++ graphException.o graph.o editGraph.o -O editGraphTest -idirafter . editGraphTest.cpp
	g++ graphException.o graph.o editGraph.o problemKernelEditOperations.o -O problemKernelEditOperationsTest -idirafter . problemKernelEditOperationsTest.cpp

problemKernelEditOperations.o: problemKernelEditOperations.cpp problemKernel.h editGraph.o
	g++ -c -idirafter . problemKernelEditOperations.cpp

editGraph.o: graph.o editGraph.cpp editGraph.h
	g++ -c -idirafter . editGraph.cpp	

graph.o: graph.cpp graph.h graphException.o
	g++ -c -idirafter . graph.cpp

graphException.o: graphException.cpp graphException.h
	g++ -c -idirafter . graphException.cpp
</code></pre>
<p>muss man beim kompilieren mit -O irgendetwas beachten??<br />
Dank,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124510</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124510</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 14:57:14 GMT]]></title><description><![CDATA[<p>Hast du jetzt -o weggelassen, oder was?</p>
<p>Ein korrekter Aufruf sähe so aus:</p>
<pre><code>g++ -O3 -o main main.cpp
</code></pre>
<p>-o brauchst du trotzdem, um salopp zu sagen: &quot;Hey, mach mir mal ne binary&quot;<br />
-O3 brauchst du, um zu sagen: &quot;Hey, mach das Programm auch gaaanz schnell&quot;</p>
<p>-O2 tut's im Übrigen in den meisten Fällen auf. Erst kürzlich war bei mir O3 langsamer als O2, schräge sache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124514</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Fri, 25 Aug 2006 14:57:14 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 15:01:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>vielen Dank...natürlich hab ich einfach -o weggelassen...ich Hirnie.<br />
leider läuft es immer noch nicht schneller, weder mit O2 noch O3.<br />
das problem muss also ein anderes sein.</p>
<p>habt ihr noch irgendwelche ideen?</p>
<p>liebe grüße,<br />
Sebastian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124523</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 15:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 15:07:57 GMT]]></title><description><![CDATA[<p>ist der code ansonsten exakt der gleiche wie auf der winbox?<br />
benutzt du irgendwelche externen libraries, die unter linux vielleicht grottig programmiert sind?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124530</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124530</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Fri, 25 Aug 2006 15:07:57 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 15:13:52 GMT]]></title><description><![CDATA[<p>ich benutze exakt das gleiche programm, mit den exakt gleichen libraries.<br />
also nur die standard library.<br />
ich find das ganze auch sehr merkwürdig, vorallem weil der linux rechner mehr speicher hat und nen schnelleren prozessor!!!<br />
der prozess läuft auch bei voller auslastung...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124535</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Fri, 25 Aug 2006 15:13:52 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 16:32:44 GMT]]></title><description><![CDATA[<p>Irgendwoher muss der Unterschied ja kommen.... welche Version vom g++ hast du denn?</p>
<p>Denn bei mir (g++ 3.3.6) und Slackware 10.2 gibt's im Vergleich zu Win2k minimale (wenn überhaupt) Unterschiede. Hast du bei Suse noch was im Hintergrund laufen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124584</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Fri, 25 Aug 2006 16:32:44 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Fri, 25 Aug 2006 17:38:37 GMT]]></title><description><![CDATA[<p>Was sagt denn</p>
<pre><code>ps aux
</code></pre>
<p>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124631</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Fri, 25 Aug 2006 17:38:37 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Sat, 26 Aug 2006 02:00:06 GMT]]></title><description><![CDATA[<p>Nabend,</p>
<p>bevor das Raten munter weitergeht schlage ich vor, mal einen Profiler einzusetzen<br />
und zu schauen, wo genau die Zeit haengen bleibt. Dann kann man weitersehen.</p>
<p>gruss<br />
v R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124774</guid><dc:creator><![CDATA[virtuell Realisticer]]></dc:creator><pubDate>Sat, 26 Aug 2006 02:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to Linux vs Windows on Mon, 28 Aug 2006 08:04:40 GMT]]></title><description><![CDATA[<p>meine g++ version ist 3.3.1<br />
die unterschiede sind da...schön das du sie nicht hast <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>so ein profiling wäre cool...vielleicht könnte noch jemand posten, wie man das macht....danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1125893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1125893</guid><dc:creator><![CDATA[sebastian_v_b]]></dc:creator><pubDate>Mon, 28 Aug 2006 08:04:40 GMT</pubDate></item></channel></rss>