<?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>C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/18759/c-library-for-22-bit-contiguous-mode-of-ds80c390</link><description> As I use inline assembler in my C program, I have to include the related C library in my project. If the project is configured to 22-bit contiguous mode &amp;amp; dual DPTRs of DS80C390, can you tell me which C library should be included ? Thks. </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/97321?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2005 05:45:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d92f6777-bd02-4a28-aa8c-517c6d1db308</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;i&gt;Since the source file contains inline assembler, the &amp;quot;generate assembler SRC file&amp;quot; &amp;amp; &amp;quot;assemble SRC file&amp;quot; options are enabled.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
You didn&amp;#39;t get it.  The important question is not whether these are turned on or not, it&amp;#39;s &lt;b&gt;where&lt;/b&gt; you turn them on. They should only be active for this particular source file, not for the entire project.&lt;br /&gt;
&lt;br /&gt;
The C standard library normally doesn&amp;#39;t have to specified by hand.  You created that need yourself by compiling all C files with those options, instead of only those that actually need them.  That makes the project look like a &amp;quot;100% assembler&amp;quot; program to the linker, so it correctly decided not to pull in the C runtime automatically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/97319?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2005 00:22:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:12d7863c-1b76-4e04-b101-e3b4d4472d28</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;I think you need just to access absolute memory locations.  Take a look to:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/2172.htm"&gt;http://www.keil.com/support/docs/2172.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/97320?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2005 00:22:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7df4c0e3-7df1-450d-bb94-e5b13faca316</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;I think you need just to access absolute memory locations.  Take a look to:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/2172.htm"&gt;http://www.keil.com/support/docs/2172.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/73354?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2005 21:40:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:41f8f4b8-8472-4887-bc40-6338878e49aa</guid><dc:creator>Tony Luk</dc:creator><description>&lt;p&gt;Due to special assembler coding sequence required for FLASH memory access in our MCU, I use inline assembler in these functions. And, these functions are grouped in a C source file.&lt;br /&gt;
&lt;br /&gt;
Since the source file contains inline assembler, the &amp;quot;generate assembler SRC file&amp;quot; &amp;amp; &amp;quot;assemble SRC file&amp;quot; options are enabled.&lt;br /&gt;
&lt;br /&gt;
Since the parameters of these functions contain 22-bit address pointer, the related library functions are called. Since this&lt;br /&gt;
library file should be specified manually, that&amp;#39;s why I ask for the name of the library.&lt;br /&gt;
&lt;br /&gt;
Is there better solution to handle this problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/44380?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2005 11:46:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4796a18a-128f-4040-877e-d19d70379f72</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;i&gt;As I use inline assembler in my C program, I have to include the related C library in my project.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
That conclusion is a bit premature.  You only have to include the C libraries manually if you compile &lt;b&gt;all&lt;/b&gt; C files of the entire project via assembler output.  The easy fix is not to do that: don&amp;#39;t turn on compilation via the .src detour for all files, but only for those that actually need it.  If necessary, you may add an otherwise empty .c source file to the project just for this purpose.&lt;br /&gt;
&lt;br /&gt;
If you actually do have inline assembly in every single one of your .c files, that&amp;#39;s a likely symptom of tool abuse --- you should probably just have written the entire thing in assembly then, or at least have organized the source code a bit better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C Library for 22-bit Contiguous Mode of DS80C390</title><link>https://community.arm.com/thread/44377?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2005 06:49:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4c40978e-3b96-4c64-b9fc-b34ee5bbac3c</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;CD51*.lib.  See also:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/c51_lib_files.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_lib_files.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>