<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to CompilingProject</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>Recent changes to CompilingProject</description><atom:link href="https://sourceforge.net/p/cp-dev/docu/CompilingProject/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 19 Jun 2014 10:32:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cp-dev/docu/CompilingProject/feed" rel="self" type="application/rss+xml"/><item><title>CompilingProject modified by Romiras</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -6,14 +6,16 @@

 ## Sample Hello module

+For example, we create a module Hello what is part of subsystem Priv (e.g. it located at path Priv/Mod/Hello.cp). 
+
 **Hello.cp**

-    MODULE Hello;
+    MODULE PrivHello;
     IMPORT Out;
     BEGIN
-      Out.String ("Hello world!");  Out.Ln
-    END Hello.
+      Out.String ("Hello world!"); Out.Ln
+    END PrivHello.

 ## Project
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romiras</dc:creator><pubDate>Thu, 19 Jun 2014 10:32:44 -0000</pubDate><guid>https://sourceforge.nete268f3f6b9f39fb83c485f33a8b3cc61d8b7e157</guid></item><item><title>CompilingProject modified by Romiras</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -69,20 +69,20 @@

 ### Sample Project

-In order to build program for native system you need create a project document for module "Hello". 
+In order to build program for native OS you need create a project document for module "PrivHello". 

 **Hello.prj**

     [Project]
-    ProjectName=hello
+    Name=&amp;lt;project name&amp;gt;

     [Compiler]
-    Module=Examples/Mod/Hello.cp
-    CompilerOptions=
+    Modules=PrivHello
+    Options=&amp;lt;compiler options&amp;gt;

     [Linker]
-    LinkedModules=Kernel$+ Math Strings Console WinConsole HostInit Init Out Hello#
+    InterfaceModules=Kernel$+ Math Strings Console WinConsole HostInit Init Out PrivHello
     OutputMode=Exe
     OutputFile=hello.exe

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romiras</dc:creator><pubDate>Thu, 19 Jun 2014 10:32:44 -0000</pubDate><guid>https://sourceforge.netc0728a462091b3ef136ef7e222d55fb2b0f71899</guid></item><item><title>CompilingProject modified by Romiras</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -22,15 +22,15 @@

     [Project]
-    ProjectName=&amp;lt;project name&amp;gt;
+    Name=&amp;lt;project name&amp;gt;

     [Compiler]
-    Module=&amp;lt;relative path to module&amp;gt;
-    CompilerOptions=&amp;lt;compiler options&amp;gt;
+    Modules=&amp;lt;ModuleName1 ModuleName2 ModuleNameN&amp;gt;
+    Options=&amp;lt;compiler options&amp;gt;

     [Linker]
-    LinkedModules=&amp;lt;list of modules, like: Kernel$+ Math Strings Console WinConsole HostInit Init Out Hello#&amp;gt;
-    OutputMode=&amp;lt;name of output file&amp;gt;
+    InterfaceModules=&amp;lt;list of modules, like: Kernel$+ Math Strings Console WinConsole HostInit Init Out Hello#&amp;gt;
+    OutputMode=&amp;lt;name of output file e.g. demo.exe, mpeg4.plg, libexport.so&amp;gt;

 ### Parameters
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romiras</dc:creator><pubDate>Thu, 19 Jun 2014 10:32:43 -0000</pubDate><guid>https://sourceforge.net4f3892e533f23c82ac01d30930a7283c7ea9e29a</guid></item><item><title>CompilingProject modified by Romiras</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -37,16 +37,31 @@

 #### CompilerOptions

+  * **checks** \- (0): Enable index range checks and type guard checks (inxchk, typchk &amp;amp; ptrinit in DevCPC486) (default). 
+  * **allchecks** \- (1): Enable overflow checks and range checks (ovflchk &amp;amp; ranchk in DevCPC486). 
+  * **assert** \- (2): Execute ASSERT instructions (assert in DevCPV486) (default). 
+  * **obj** \- (3): Enable code output (outObj in DevCPE) (default except in interface modules). 
+  * **ref** \- (4): Record references to variables (outRef in DevCPE) (default). 
+  * **allref** \- (5): Record more references, about RECORDs &amp;amp; static ARRAYs (outAllRef &amp;amp; outURef in DevCPE) (default). 
+  * **srcpos** \- (6): Record positions in source (outSrc in DevCPE) (default). 
+  * **hint** \- (29): Insert additional error marks (warnings) in source text (hint in DevCompiler.Module &amp;amp; hints in DevCPC486). 
+  * **oberon** \- (30): Compatibility with Oberon, relative to the use of IN and OUT (oberon in DevCPM.options). 
+  * **errorTrap** \- (31): Makes the compiler trap (HALT(100)) if an error in the source is detected (trap in DevCPM.options). 
+
+Default compiler options are _{checks, assert, obj, ref, allref, srcpos, signatures}_. 
+
 **CompilerOptions** is a combination of options in one string. Valid characters are '-', '!', '+', '$', '?' and '@'. 

-  * **-** \- (no description yet) 
-  * **!** \- (no description yet) 
-  * **+** \- all checks 
-  * **?** \- hint 
-  * **@** \- error trap 
-  * **$** \- oberon 
-
-Default compiler options are _{checks, assert, obj, ref, allref, srcpos, signatures}_. 
+  * first '-' excludes srcpos from compiler options. 
+  * second '-' excludes allref from compiler options. 
+  * third '-' excludes ref from compiler options. 
+  * fourth '-' excludes obj from compiler options. 
+  * first '!' excludes assert from compiler options. 
+  * second '!' excludes checks from compiler options. 
+  * '+' includes allchecks into compiler options. 
+  * '?' includes hint into compiler options. 
+  * '@' includes errorTrap into compiler options. 
+  * '$' includes oberon into compiler options. 

 #### Paths

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romiras</dc:creator><pubDate>Thu, 19 Jun 2014 10:32:43 -0000</pubDate><guid>https://sourceforge.netefbf7f471c0d68a3b2dc721b348b01e680766e0b</guid></item><item><title>CompilingProject modified by Romiras</title><link>https://sourceforge.net/p/cp-dev/docu/CompilingProject/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#note"&gt;Note&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h4 id="note"&gt;Note&lt;/h4&gt;
&lt;p&gt;This document is a draft version. &lt;/p&gt;
&lt;h2 id="sample-hello-module"&gt;Sample Hello module&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Hello.cp&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;MODULE&lt;/span&gt; &lt;span class="n"&gt;Hello&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;IMPORT&lt;/span&gt; &lt;span class="n"&gt;Out&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;BEGIN&lt;/span&gt;
  &lt;span class="n"&gt;Out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;String&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Hello world!&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  &lt;span class="n"&gt;Out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Ln&lt;/span&gt;
&lt;span class="n"&gt;END&lt;/span&gt; &lt;span class="n"&gt;Hello&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="project"&gt;Project&lt;/h2&gt;
&lt;h3 id="template-for-project"&gt;Template for project&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;[Project]&lt;/span&gt;
&lt;span class="na"&gt;ProjectName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;amp;lt;project name&amp;amp;gt;&lt;/span&gt;

&lt;span class="k"&gt;[Compiler]&lt;/span&gt;
&lt;span class="na"&gt;Module&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;amp;lt;relative path to module&amp;amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;CompilerOptions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;amp;lt;compiler options&amp;amp;gt;&lt;/span&gt;

&lt;span class="k"&gt;[Linker]&lt;/span&gt;
&lt;span class="na"&gt;LinkedModules&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;amp;lt;list of modules, like: Kernel$+ Math Strings Console WinConsole HostInit Init Out Hello#&amp;amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;OutputMode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;amp;lt;name of output file&amp;amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id="parameters"&gt;Parameters&lt;/h3&gt;
&lt;h4 id="compileroptions"&gt;CompilerOptions&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;CompilerOptions&lt;/strong&gt; is a combination of options in one string. Valid characters are '-', '!', '+', '$', '?' and '@'. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;-&lt;/strong&gt; - (no description yet) &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;!&lt;/strong&gt; - (no description yet) &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;+&lt;/strong&gt; - all checks &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;?&lt;/strong&gt; - hint &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;@&lt;/strong&gt; - error trap &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;$&lt;/strong&gt; - oberon &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Default compiler options are &lt;em&gt;{checks, assert, obj, ref, allref, srcpos, signatures}&lt;/em&gt;. &lt;/p&gt;
&lt;h4 id="paths"&gt;Paths&lt;/h4&gt;
&lt;p&gt;All paths are relative to root directory of all subsystems. &lt;/p&gt;
&lt;h3 id="sample-project"&gt;Sample Project&lt;/h3&gt;
&lt;p&gt;In order to build program for native system you need create a project document for module "Hello". &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hello.prj&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;[Project]&lt;/span&gt;
&lt;span class="na"&gt;ProjectName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;hello&lt;/span&gt;

&lt;span class="k"&gt;[Compiler]&lt;/span&gt;
&lt;span class="na"&gt;Module&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Examples/Mod/Hello.cp&lt;/span&gt;
&lt;span class="na"&gt;CompilerOptions&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;

&lt;span class="k"&gt;[Linker]&lt;/span&gt;
&lt;span class="na"&gt;LinkedModules&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Kernel$+ Math Strings Console WinConsole HostInit Init Out Hello#&lt;/span&gt;
&lt;span class="na"&gt;OutputMode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Exe&lt;/span&gt;
&lt;span class="na"&gt;OutputFile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;hello.exe&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Romiras</dc:creator><pubDate>Thu, 19 Jun 2014 10:32:43 -0000</pubDate><guid>https://sourceforge.net904c12feedaf36a2a423ffdf48ddbd11309d6ef3</guid></item></channel></rss>