<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Is unused stuff compiled ?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/24cbf157f5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/24cbf157f5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/24cbf157f5/</id><updated>2020-02-27T19:59:10.422000Z</updated><subtitle>Recent posts to Is unused stuff compiled ?</subtitle><entry><title>Is unused stuff compiled ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/24cbf157f5/?limit=25#173c" rel="alternate"/><published>2020-02-27T19:59:10.422000Z</published><updated>2020-02-27T19:59:10.422000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comdf5448051c88b8ac3cdd1acd29252dc969472dd6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;within oscat it is a little difficult, but possible.&lt;br/&gt;
1. make your own library by deleting a lot of functions, however a lot of them are nested, so it will tell you some functions are not in because you deleted them.&lt;br/&gt;
2. i use the oscat.txt a lot, i just copy my needed function into my program and do not use libraries at all.&lt;br/&gt;
when a function asks for a subfunction i copy that one also.&lt;br/&gt;
i copy in ST and have to move the VAR into its place.&lt;br/&gt;
 disadvantage is you can not do any version work. but if your program is running why a new version is needed.&lt;br/&gt;
I do write faultless programs, so no update needed   &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Is unused stuff compiled ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/24cbf157f5/?limit=25#1d30" rel="alternate"/><published>2020-02-27T19:59:09.120000Z</published><updated>2020-02-27T19:59:09.120000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comba961abb1650e467708237f6e95280053cc1c9d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes everything is compiled and counted in V2.3. BUT here are a few ways to get over this. I have complained about this situation in another post.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;if the compilers claims there is not enough memory sometimes if your target permits you can adjust the size in the Project-Option-Build- Number of data segments.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You need to go to the Project-Option-Build- and select the "exclude objects" button. This will allow you to select which FB to exclude from the build. This will lower your overall POU count during a build.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Unfortunately CoDeSys is smart enough to know you have too many POU but not smart enough to know which ones are actually used/referenced.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Is unused stuff compiled ?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/24cbf157f5/?limit=25#acc1" rel="alternate"/><published>2020-02-27T19:59:05.458000Z</published><updated>2020-02-27T19:59:05.458000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.comc72fe9bcd615f1ec123490a2fc116aa2b736d103</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I added oscat311.lib to a project for a PLCWinNT target, just to test how some stuff works.&lt;br/&gt;
When I tried to build the project, got error 3612 - compile aborted because there were more than 512 POU's.&lt;/p&gt;
&lt;p&gt;So what is really compiled from a .lib - only what's actually used + dependencies, or everything no matter used or not ?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>