<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/hacadacompiler/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/hacadacompiler/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 08 Mar 2023 02:23:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hacadacompiler/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=25#801d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thx Gautier. I used -I&amp;lt;fullpath to="" hat.ads=""&amp;gt; ! Worked liked a hot damn!! Thx. I did it all from emacs even though I can't get ada-mode to work properly.&amp;lt;/fullpath&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duke Normandin</dc:creator><pubDate>Wed, 08 Mar 2023 02:23:25 -0000</pubDate><guid>https://sourceforge.net00ecf64198b12d4c27e691c4fb52cdedbe673a28</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=100#a6f2/ebff</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Almost there! If your &lt;code&gt;hello_world2.adb&lt;/code&gt; is, say, in HAC's top directory, you can type &lt;code&gt;gnatmake -Isrc hello_world2.adb&lt;/code&gt;.&lt;br/&gt;
Furthermore, if you go to the &lt;code&gt;exm&lt;/code&gt; directory and type &lt;code&gt;gprbuild&lt;/code&gt;, GNAT will compile 42 HAC examples just like that!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gautier de Montmollin</dc:creator><pubDate>Wed, 08 Mar 2023 01:23:37 -0000</pubDate><guid>https://sourceforge.net3e369c10936e6df364780477500c275ee88055ed</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=25#a6f2</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;with Hat;&lt;br/&gt;
procedure Hello_World2 is&lt;br/&gt;
use Hat;&lt;br/&gt;
begin&lt;br/&gt;
  Put("Hello world!");&lt;br/&gt;
  Put_Line("");&lt;br/&gt;
end Hello_World2;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Tried to compile the above with gnatmake! No joy!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;gnatmake hello_world2.adb &lt;br/&gt;
gcc -c hello_world2.adb&lt;br/&gt;
hello_world2.adb:1:06: error: file "hat.ads" not found&lt;br/&gt;
gnatmake: "hello_world2.adb" compilation error&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duke Normandin</dc:creator><pubDate>Tue, 07 Mar 2023 22:56:31 -0000</pubDate><guid>https://sourceforge.net3e3960b794f4e58ec7225036bb45a0d413f9802f</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=100#e390</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;What compiles with HAC compiles with GNAT (or another Ada compiler). No edit needed. And it's not Pascal, it's Ada :-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gautier de Montmollin</dc:creator><pubDate>Tue, 07 Mar 2023 18:29:54 -0000</pubDate><guid>https://sourceforge.netdfbc57c71a0c329df43fbacbd7ac5b133069eba2</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=25#0522</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In a post above you said:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;you can switch your sources from HAC to GNAT(or another full Ada system) and vice versa (as long as you stay in HAC's language subset of course) any time.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What did you mean by that specifically please? Simply that the Pascal source code can be edited to suit either GNAT or HAC?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duke Normandin</dc:creator><pubDate>Tue, 07 Mar 2023 16:42:44 -0000</pubDate><guid>https://sourceforge.net85843b5d76b3d7fd11a9a9607878634cff393ae6</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=100#87bb/4c75/1593</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;code&gt;gnatmake&lt;/code&gt; drives the GNAT compiler which produces a native executable.&lt;br/&gt;
GNAT and HAC are completely different compilers. Currently HAC produces only an executable for a virtual machine (this is similar to Python for instance).&lt;br/&gt;
The HAC-generated executable is not written into any file.&lt;br/&gt;
In future versions of HAC, binary code might be also written on the disk and HAC might be able to generate native machine code, which would be also very compact.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gautier de Montmollin</dc:creator><pubDate>Tue, 07 Mar 2023 06:38:26 -0000</pubDate><guid>https://sourceforge.netf7ab6158a34c63cfcf05410914526db7d0950446</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=25#87bb/4c75</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I just installed HAC and had the same question as the OP. What do I need to do to the HAC code for it to compile into an executable using `gnatmake'? Merci!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duke Normandin</dc:creator><pubDate>Tue, 07 Mar 2023 06:10:20 -0000</pubDate><guid>https://sourceforge.net160a0073764f46e7fdd6217108b64f5ac1d42093</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=100#87bb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yep. The difference is that you can switch your sources from HAC to GNAT(or another full Ada system) and vice versa (as long as you stay in HAC's language subset of course) any time.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gautier de Montmollin</dc:creator><pubDate>Mon, 08 Jun 2020 19:39:07 -0000</pubDate><guid>https://sourceforge.net023155332ec7622270d3ef628bcf20ce3351bd15</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=25#05e4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;ah, I get it. It is not python or c but more like java then..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Patrick McCavery</dc:creator><pubDate>Mon, 08 Jun 2020 16:27:15 -0000</pubDate><guid>https://sourceforge.net862def019773687157072f613e37213346c5b180</guid></item><item><title>interpreter or compiler ?</title><link>https://sourceforge.net/p/hacadacompiler/discussion/general/thread/1b2c9ec689/?limit=100#7ff6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Pat,&lt;br/&gt;
Answer to first question: right!&lt;br/&gt;
Answer to second question: it's a bit more subtle. It produces an executable for a virtual machine. This VM starts, runs and stops in memory. The machine code for that VM is interpreted, like for other VMs or for emulating processor X on processor Y. So you'll find in HAC a compiler (see src/compile) and an interpreter for the machine code produced by the compiler (see src/execute).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gautier de Montmollin</dc:creator><pubDate>Mon, 08 Jun 2020 12:34:26 -0000</pubDate><guid>https://sourceforge.netfeb3250571690abb1938e5c9066b8179d0e3c8ec</guid></item></channel></rss>