<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic info : cc compiler option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799859#M641544</link>
    <description>Hi, &lt;BR /&gt;I have one ".c" program, in that program there is some "asm", code is also there while compiling the program I m getting below error.&lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbol "asm" in file app_test.o&lt;BR /&gt;&lt;BR /&gt;could you please tell, which cc "option" , I have to take to compile the asm code in ".c" program?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Manish</description>
    <pubDate>Sun, 19 Jun 2011 15:15:39 GMT</pubDate>
    <dc:creator>Kernel Tunable parmeter</dc:creator>
    <dc:date>2011-06-19T15:15:39Z</dc:date>
    <item>
      <title>info : cc compiler option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799859#M641544</link>
      <description>Hi, &lt;BR /&gt;I have one ".c" program, in that program there is some "asm", code is also there while compiling the program I m getting below error.&lt;BR /&gt;&lt;BR /&gt;ld: Unsatisfied symbol "asm" in file app_test.o&lt;BR /&gt;&lt;BR /&gt;could you please tell, which cc "option" , I have to take to compile the asm code in ".c" program?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Manish</description>
      <pubDate>Sun, 19 Jun 2011 15:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799859#M641544</guid>
      <dc:creator>Kernel Tunable parmeter</dc:creator>
      <dc:date>2011-06-19T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: info : cc compiler option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799860#M641545</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] cc compiler option&lt;BR /&gt;&lt;BR /&gt;Which C compiler?  (What makes you think that&lt;BR /&gt;your C compiler is also a macro assembler for&lt;BR /&gt;whichever assembly language may be embedded&lt;BR /&gt;in this (mostly) C code?)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have one ".c" program, [...]&lt;BR /&gt;&lt;BR /&gt;With my weak psychic powers, I can't see it&lt;BR /&gt;from here.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; while compiling the program&lt;BR /&gt;&lt;BR /&gt;I can't see the command you used, either.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  I m getting below error.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; ld: Unsatisfied symbol "asm" in file&lt;BR /&gt;&amp;gt; app_test.o&lt;BR /&gt;&lt;BR /&gt;As the message says, that complaint is coming&lt;BR /&gt;from "ld", not from the C compiler.</description>
      <pubDate>Sun, 19 Jun 2011 17:16:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799860#M641545</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-19T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: info : cc compiler option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799861#M641546</link>
      <description>Hi Steven Schweda,&lt;BR /&gt;&lt;BR /&gt;I have ".c" code , in which I have some asm code, plz find below&lt;BR /&gt;&lt;BR /&gt;===========================================&lt;BR /&gt;char * allocBuf (long size)&lt;BR /&gt;{&lt;BR /&gt;  long offset =&lt;BR /&gt;    asm (&lt;BR /&gt;         "10:  ldq_l   %t0, (%a0);"     /* Load the offset pointer locked */&lt;BR /&gt;         "bis  %r31, %t0, %v0;"         /* Save the original in the return register */&lt;BR /&gt;         "addq %t0, %a1, %t0;"          /* Increment the offset by the allocation size */&lt;BR /&gt;         "40:  stq_c   %t0, (%a0);"     /* Try to store it */&lt;BR /&gt;         "beq  %t0, 10b;",              /* If zero, we failed, retry */&lt;BR /&gt;         &amp;amp;dataOff, size);&lt;BR /&gt;&lt;BR /&gt;  return &amp;amp;dataBuf[offset];&lt;BR /&gt;}&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;BR /&gt;cc aap_test.c, I am getting that mentioned "ld: error for asm". could you please help to resolve this issue. I am on HP-UX IA system.&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Jun 2011 17:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799861#M641546</guid>
      <dc:creator>Kernel Tunable parmeter</dc:creator>
      <dc:date>2011-06-19T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: info : cc compiler option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799862#M641547</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  asm (&lt;BR /&gt;&amp;gt; "10: ldq_l %t0, (%a0);" /* Load the offset pointer locked */&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Your code seems to me to call a function,&lt;BR /&gt;"asm", and pass it a bunch of character&lt;BR /&gt;strings.  The C compiler, too, apparently&lt;BR /&gt;thinks that "asm" is a function.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] "ld: error for asm". &lt;BR /&gt;&lt;BR /&gt;In some places, quotation marks are used to&lt;BR /&gt;denote text which you are _not_ making up.&lt;BR /&gt;Returning to what may be the actual error&lt;BR /&gt;message, ...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ld: Unsatisfied symbol "asm" [...]&lt;BR /&gt;&lt;BR /&gt;Because you haven't supplied the function,&lt;BR /&gt;"asm".  Apparently, "aap_test.c" (or whatever&lt;BR /&gt;it's called) is not a complete program in&lt;BR /&gt;itself.  You should be able to avoid the&lt;BR /&gt;link error message by avoiding the linker:&lt;BR /&gt;&lt;BR /&gt;      cc -c whatever.c&lt;BR /&gt;&lt;BR /&gt;But the result of that won't be executable.&lt;BR /&gt;&lt;BR /&gt;What is this program, and why do you expect&lt;BR /&gt;it to work on your system?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I am on HP-UX IA system.&lt;BR /&gt;&lt;BR /&gt;      uname -a</description>
      <pubDate>Sun, 19 Jun 2011 18:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799862#M641547</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-19T18:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: info : cc compiler option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799863#M641548</link>
      <description>The compiler drivers on HP-UX will automatically pass .s files to as(1).&lt;BR /&gt;Code with asm must be ported to any new architecture.  In your case you have inline assembly for Alpha?  You'll have to either replace it by C code or convert to Itanium inline assembly functions, _Asm_*.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: that complaint is coming from "ld", not from the C compiler.&lt;BR /&gt;&lt;BR /&gt;That's because it looks like a valid function call and Manish isn't using C99.  :-(&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Jun 2011 23:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/info-cc-compiler-option/m-p/4799863#M641548</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-06-19T23:44:18Z</dc:date>
    </item>
  </channel>
</rss>

