<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>HOW .... to include library C51s.lib ???</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/31233/how-to-include-library-c51s-lib</link><description> 
I am doing inline assembly. All works except unresolved
external. 
OK I KNOW WHY. 

 
BUT HOW DOES ONE INLCUDE THE MISSING LIBRARY IN THE IDE ? 

 
Specifically, what dialog, what text to enter where ? 

 
The &amp;quot;help&amp;quot; says &amp;quot;BL51 inputlist, CxxFPS.LIB</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: HOW .... to include library C51s.lib ???</title><link>https://community.arm.com/thread/93113?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2013 07:34:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bb7e3755-135b-4900-a194-7cb976459a1a</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I strongly suggest you leave the whole idea of inline assembly
alone for quite while yet. You&amp;#39;ll have to be much better at all this
before this becomes a tool that you can really profit from.&lt;/i&gt;&lt;br /&gt;
my version is shorter&amp;quot;&lt;br /&gt;
&amp;quot;I strongly suggest you leave the whole idea of inline assembly
alone&amp;quot;&lt;/p&gt;

&lt;p&gt;
if something gain an advantage from inline assembly (less than you
think will) DO NOT use inline assembly, write the function in
assembler in an assembly module.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW .... to include library C51s.lib ???</title><link>https://community.arm.com/thread/62464?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2013 04:24:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d9d3aa73-84e3-49f7-81d9-8fc303d4e03e</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I am doing inline assembly.&lt;/i&gt;&lt;br /&gt;
Actually, the symptoms you get typically come from severely
&lt;b&gt;over&lt;/b&gt;doing inline assembly. You get those symptoms by turning
on the SRC directive for &lt;b&gt;every&lt;/b&gt; C source file in your program.
&lt;b&gt;Don&amp;#39;t do that&lt;/b&gt;, particularly not at the rather limited level of
experience with the tools you have right now.&lt;/p&gt;

&lt;p&gt;
That set aside, whatever your reason for doing so, inline assembly
is almost certainly the wrong way to get there. In C51, even more
than most other other compilers, the achievable positive effects of
inline assembly are quite a bit smaller than most people think ---
and the negative side-effects much bigger.&lt;/p&gt;

&lt;p&gt;
I strongly suggest you leave the whole idea of inline assembly
alone for quite while yet. You&amp;#39;ll have to be much better at all this
before this becomes a tool that you can really profit from.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW .... to include library C51s.lib ???</title><link>https://community.arm.com/thread/68496?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2013 23:13:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bd0ad262-f7d6-4aaf-9c07-8ca74aa3672c</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Keil does this by translating all the &amp;#39;C&amp;#39; source to assembly, and
then passing that through the assembler.&lt;/p&gt;

&lt;p&gt;
A result of this is that the linker no longer &amp;quot;knows&amp;quot; that you had
&amp;#39;C&amp;#39; source, so it doesn&amp;#39;t do all the automatic &amp;#39;C&amp;#39; support stuff that
it otherwise would - including adding all the support libraries.&lt;/p&gt;

&lt;p&gt;
One way around this is to ensure that you still have a
&lt;b&gt;main()&lt;/b&gt; function which is pure &amp;#39;C&amp;#39; - ie, &lt;b&gt;not&lt;/b&gt; translated
via assembler. That will ensure that the Linker knows what to
do...&lt;/p&gt;

&lt;p&gt;
Good night, and may your god go with you.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>