<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" 
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:meneame="http://meneame.net/faq-es.php"
 >
<channel>
	<title>SysDevs: comentarios [3018816]</title>
	<link>http://www.meneame.net</link>
	<image><title>www.meneame.net</title><link>http://www.meneame.net</link><url>http://cdn.mnmstatic.net/m/sysdevs/img/mnm/eli-rss.png</url></image>
	<description>Sitio colaborativo de publicación y comunicación entre blogs</description>
	<pubDate>Sat, 29 Sep 2018 18:01:03 +0000</pubDate>
	<generator>http://blog.meneame.net/</generator>
	<language>es</language>
	<item>
		<meneame:comment_id>25395004</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>7</meneame:order>
		<meneame:user>sisi</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>10</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#7 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c07#c-7</link>
		<pubDate>Sat, 29 Sep 2018 18:01:03 +0000</pubDate>
		<dc:creator>sisi</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c07#c-7</guid>
		<description><![CDATA[<p>Porque si los confundes sale esto</p><p>&#187;&nbsp;autor: <strong>sisi</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25393045</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>6</meneame:order>
		<meneame:user>--581111--</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>7</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#6 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c06#c-6</link>
		<pubDate>Sat, 29 Sep 2018 12:45:25 +0000</pubDate>
		<dc:creator>--581111--</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c06#c-6</guid>
		<description><![CDATA[<p><a class="tooltip c:3018816-4" href="https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c04#c-4" rel="nofollow">#4</a> <br />
En la noticia está. Pero básicamente lo que hace es analizar el origen de la variable que se modifica. Al utilizar una constante para modificar el valor de un puntero GCC previene que dicha modificación tenga un efecto no deseado evitando convertirlo en un sinónimo.<br />
En el ejemplo tienes el puntero «x» y el puntero «p». GCC previene el sinónimo de p = x si para establecer el valor de p utilizas una constante que te has sacado de la manga en vez de calcularla en base al origen de las variables:<br />
* Cálculo en base a origen de variables de tipo puntero:<br />
uintptr_t xi = (uintptr_t)x;<br />
  uintptr_t yi = (uintptr_t)y;<br />
  uintptr_t diff = xi - yi;<br />
  printf(&#34;diff = %ldn&#34;, (long)diff);<br />
  int *p = (int *)(yi + diff);<br />
<br />
* Cálculo con valor sacado de la manga:<br />
  uintptr_t xi = (uintptr_t)x;<br />
  uintptr_t yi = (uintptr_t)y;<br />
  uintptr_t diff = xi - yi;<br />
  printf(&#34;diff = %ldn&#34;, (long)diff);<br />
  int *p = (int *)(yi - <b>96</b>); <b>// &#60;--- CHANGED!</b></p><p>&#187;&nbsp;autor: <strong>--581111--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25391983</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>5</meneame:order>
		<meneame:user>--540692--</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>6</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#5 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c05#c-5</link>
		<pubDate>Sat, 29 Sep 2018 10:21:46 +0000</pubDate>
		<dc:creator>--540692--</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c05#c-5</guid>
		<description><![CDATA[<p>[Usuario deshabilitado]</p><p>&#187;&nbsp;autor: <strong>--540692--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25390910</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>4</meneame:order>
		<meneame:user>flixter</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>7</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#4 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c04#c-4</link>
		<pubDate>Sat, 29 Sep 2018 07:49:36 +0000</pubDate>
		<dc:creator>flixter</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c04#c-4</guid>
		<description><![CDATA[<p><a class="tooltip c:3018816-3" href="https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c03#c-3" rel="nofollow">#3</a> ¿Qué hace GCC?</p><p>&#187;&nbsp;autor: <strong>flixter</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25390137</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>3</meneame:order>
		<meneame:user>--581111--</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>7</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#3 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c03#c-3</link>
		<pubDate>Sat, 29 Sep 2018 02:07:37 +0000</pubDate>
		<dc:creator>--581111--</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c03#c-3</guid>
		<description><![CDATA[<p>A mí personalmente me parece que lo que hace GCC es mejor. Evita que el programador la cague.</p><p>&#187;&nbsp;autor: <strong>--581111--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25389415</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>2</meneame:order>
		<meneame:user>--589369--</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>8</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#2 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c02#c-2</link>
		<pubDate>Fri, 28 Sep 2018 21:19:54 +0000</pubDate>
		<dc:creator>--589369--</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c02#c-2</guid>
		<description><![CDATA[<p>el maravilloso mundo del aliasing y las optimizaciones del compilador</p><p>&#187;&nbsp;autor: <strong>--589369--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>25385007</meneame:comment_id>
		<meneame:link_id>3018816</meneame:link_id>
		<meneame:order>1</meneame:order>
		<meneame:user>Caresth</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>11</meneame:karma>
		<meneame:url>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng</meneame:url>
		<title>#1 ¿Cuál es la diferencia entre un entero y un puntero? [ENG]</title>
		<link>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c01#c-1</link>
		<pubDate>Fri, 28 Sep 2018 09:55:39 +0000</pubDate>
		<dc:creator>Caresth</dc:creator>
		<guid>https://www.meneame.net/m/sysdevs/cual-diferencia-entre-entero-puntero-eng/c01#c-1</guid>
		<description><![CDATA[<p>¿-e+pu?</p><p>&#187;&nbsp;autor: <strong>Caresth</strong></p>]]></description>
	</item>

</channel>
</rss>
