<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2015:02:19</title>
        <description></description>
        <link>https://www.baszerr.eu/</link>
        <lastBuildDate>Wed, 06 May 2026 09:37:27 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://www.baszerr.eu/</link>
        </image>
        <item>
            <title>main_is_usually_a_function</title>
            <link>https://www.baszerr.eu/doku.php?id=blog:2015:02:19:main_is_usually_a_function</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;main_is_usually_a_function&quot;&gt;2015-02-19 - &amp;#039;main&amp;#039; is usually a function&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://szborows.blogspot.com&quot; class=&quot;urlextern&quot; title=&quot;http://szborows.blogspot.com&quot; rel=&quot;ugc nofollow&quot;&gt;Sławek&lt;/a&gt; recently sent me an awesome article. it appears that even though &lt;a href=&quot;https://jroweboy.github.io/c/asm/2015/01/26/when-is-main-not-a-function.html&quot; class=&quot;urlextern&quot; title=&quot;https://jroweboy.github.io/c/asm/2015/01/26/when-is-main-not-a-function.html&quot; rel=&quot;ugc nofollow&quot;&gt;&amp;#039;main&amp;#039; is usually a function&lt;/a&gt;, it does not have to be so… :) long story short – linker is expecting to have a non-C++-mangled symbol called &lt;em&gt;main&lt;/em&gt;. and that&amp;#039;s it. if not a function than what? in fact it can be an array of bytes, which represents an assembly code!
&lt;/p&gt;

&lt;p&gt;
i guess &lt;em&gt;main&lt;/em&gt; could also be a single variable, followed by a series of other variables, that represent consecutive instructions (encoded as numbers). just thinking out loud – a beer on me for whoever first finds variables representing series of integers that represent a program, that changes these variables as it executes and executes changed values again&lt;sup&gt;&lt;a href=&quot;#fn__1&quot; id=&quot;fnt__1&quot; class=&quot;fn_top&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt;, resulting in another (valid) program changing itself and so on ad infinitum… a sort of fractal code. extra beer if these numbers are floating point! :D
&lt;/p&gt;

&lt;/div&gt;
&lt;div class=&quot;footnotes&quot;&gt;
&lt;div class=&quot;fn&quot;&gt;&lt;sup&gt;&lt;a href=&quot;#fnt__1&quot; id=&quot;fn__1&quot; class=&quot;fn_bot&quot;&gt;1)&lt;/a&gt;&lt;/sup&gt; 
&lt;div class=&quot;content&quot;&gt;watch out for icache! :P&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:33 +0000</pubDate>
        </item>
    </channel>
</rss>
