                                               : 2003 ǯ 3  28 

 Sun[tm] ONE Studio 8:󥯥󥿥󥫡 Readme

     ܼ

       A. Ϥ
       B. Sun ONE Studio 8 󥯥󥿥󥫡ˤĤ
       C. ѹ줿ǽ
       D. եȥν
       E. Ȳ
       F. »ȸߴ
       G. Ҥθ



     ------------------------------------------------------------------

     A. Ϥ

     ʸǤϡSun Open Net Environment (Sun ONE) Studio 8,
     Compiler Collection 󥯥󥿥󥫡 (ILD) ˴ؤ
     󶡤ޤ ޤʸǤϺΥ꡼󶡤뿷ǽ
     եȥνˤĤƲ⤹ȤȤˡΤ»
     ࡢӸߴˤĤƤޤʸεƤ
     Υ꡼Υޥ˥奢εƤͥ褷ޤ

     ʥޥ˥奢

        * ꡼Ρ: http://docs.sun.com/ Ǥޤ ꡼
          ΡȤξϡʤΡReadmeץեξͥ褷
          
        * Compiler Collection Υޥ˥奢: ʤΥޥ˥奢ڡ
          HTML Ǥ Readmeӥޥ˥奢ϡ
          /opt/SUNWspro/docs/ja/index.html 饢Ǥޤ
        * Compiler Collection ȯԸ꥽ݡ: Ѳ⡢
          Compiler Collection ϢΥɥȡμ١ʤɤˤĤ
          Ƥϡ Compiler Collection Developer Resources Portal (Ѹ)
          򻲾ȤƤ

      - Compiler Collection եȥǥեȤ /opt ʳΥ
     쥯ȥ˥󥹥ȡ뤵Ƥϡƥбѥ
     򥷥ƥԤ˳ǧƤ

     ʸΥƥǤɽˤϡޥɥץץȤǼΥޥ
     ɤϤޤ

        more /opt/SUNWspro/READMEs/ja/ild

     ʸ HTML ǤɽˤϡΥե˥ޤ

     file:/opt/SUNWspro/docs/ja/index.html

      -  ʸǤϡPentiumPentium ProPentium IIPentium II
     XeonCeleronPentium IIIPentium III Xeon ץåӡ
     ȸߴΤ AMD  Cyrix Υޥץååפ
     ޤࡢIntel 32 ӥåȥץåƥΤ Intel 
     ƥ (IA) ȸƤǤޤ



     ------------------------------------------------------------------

     B. Sun ONE Studio 8 󥯥󥿥󥫡ˤĤ

     Υ꡼ ILD ϡSolaris[tm] ڥ졼ƥ󥰴Ķ (SPARC
     (R); ץåȥե)  Solaris ڥ졼ƥ󥰴Ķ (x86 ץ
     åȥե) ΥС 78 9 ưޤ



     ------------------------------------------------------------------

     C. ѹ줿ǽ

     ǤϡΥ꡼ ILD ǿɲä줿ǽѹ줿
     ǽƤޤSun ONE Studio Τ¾ΥݡͥȤˤĤ
     ƤϡSun ONE Studio 8 οǽ٤򻲾ȤƤ 륷
     ƥޤϥͥåȥǤΥޥ˥奢򥢥ˤϡ
     file:/opt/SUNWspro/docs/ja/index.html򳫤Ƥ
     http://docs.sun.com ˤƱޥ˥奢뤬ǺܤƤޤ

        * ILD ϡ󥫡פ򥵥ݡȤޤΥݡȤϡC
          桼ɡ٤ȡC++ 桼ɡ٤Ƥ
          üҤѤ뤫뤤 -xldscope ѥ
          饪ץͭˤޤ

        * ILD ϡ֥饦 DWARF ǥݡȤޤ
          ݡȤϡ.stab.sbfocus  .stab.sbfocusstr 
          ϼ¹Բǽե˥󥯤뤳Ȥˤäͭˤ
          ޤ
          DWARF ξܺ٤ϡC 桼ɡ٤ޤ cc(1) 
          -xdebugformat 򻲾ȤƤ

        * ILD ϡSPARC ץåȥեѤ˲ɤ줿 ILD ѿ̤
          åɥ륹ȥ졼򥵥ݡȤޤ
          åɥ륹ȥ졼ξܺ٤ϡC 桼ɡ٤
          ӡC++ 桼ɡ٤Ҥ˴ؤ䡢
          -xthreadvar ѥ饪ץʤɤ򻲾ȤƤ
          



     ------------------------------------------------------------------

     D. եȥν

     ǤϡΥեȥνˤĤޤ

        * 4783169
          ILD ϡϥեι󥯡 2 ܤι
          Ʊ˵Ȥ򤱤褦˹ޤΤ
          ʾȡst_mtime ѹʤޤޤȤʤꡢILD 
          ϥե 2 ܤιθФ˼Ԥޤ

        * 4754134
          ILD ϡ.stab.index%*  N_OBJ ֤οˤĤ
           ( comdat ֤) 򲼤ʤ褦
          ޤ

        * 4695562
          ILD ϡԲǽʥ󥷥ܥκ֤μ¤˹
          褦˹ޤ



     ------------------------------------------------------------------

     E. Ȳ

     ǤϡΤΥեȥȡβˤĤ
     ޤˤĤƤϡåץǡȾΥڡ
     http://sun.co.jp/software/sundev/suncc/hotnews.html 򻲾ȤƤ
     

        * ILD ϸߡ쥸ܥФɲäΤߤΥݥꥷ
          ݡȤƤޤΥݥꥷϡϥե˥쥸
          ܥ뤬ѤƤơΥե뤬ѹ줿ϡILD
          ե󥯤¹Ԥ뤳Ȥ̣ޤ

        * -g ʳκŬ٥ǥѥ뤹ȡ쥸ܥ뤬
          Ѥ뤳ȤޤΤᡢ-g ǥѥ뤷ʤä
          ǥ󥫡Ѥ줿硢ILD ΥåȤ򤹤٤
          褦դɬפǤ

        * ILD ϡ֥饤֥ϥեΥॹפ
          Ťơ줿եꤷޤƱܥˤĤ
          ʣ饤֥¸ߤʤ硢ILD ư
          ޤ1 ĤޤʣΥ饤֥Ʊ쥷ܥʣ
          ¸ߤ硢ILD ˺뤳Ȥޤ
          褦ʾ硢ILD ϡåФˡʥץ
          뤳Ȥޤ

        * -m ץɸϤ˥꡼ޥåפޤ̿Ū
          顼ˤϤʤʤʣƤ륷ܥΥꥹȤ
          ޤ

        * ֥ե뤫ϥեФơ󥯥
          ¹Բǽե˥󥯤ȡϥեؤλȤ
          ٤ƺƤ⡢˽󥯤¹Ԥޤǡϥե
          뤬¹Բǽե˻ĤäޤޤˤʤޤǤϡ1
          ܤΥ󥯤Ǥ myfunc1  myfunc2 򻲾ȤƤޤone.o
           two.o ϥ֤ФޤΥ
          Υ򻲾ȤƤ

          % cc -c main1.c main2.c one.c two.c
          % ar cr libfoo.a one.o two.o
          % rm -f a.out
          % cp main2.o main.o # references myfunc1 and myfunc2
          % cc -xildon main.o libfoo.a # first link (initial link)
          % ./a.out
          Calling myfunc1!
          myfunc1 called!
          Calling myfunc2!
          myfunc2 called!
          % nm a.out | grep myfunc
          [59]    |    68912|      32|FUNC |GLOB|0    |8     |myfunc1
          [60]    |    68960|      32|FUNC |GLOB|0    |8     |myfunc2

          2 ܤΥ󥯤Ǥϡmyfunc2 ϻȤ줺¹Բǽե
          ( two.o Ƥ뤽¾Τ٤ƤΥܥ) ˻
          äƤޤa.out ȡŪ˽󥯤
          Ԥ졢3 ܤΥ󥯤˼Ƥ褦ˡmyfunc2 ʤ
          ޤ

          % cp main1.o main.o          # myfunc2 ϻȤƤʤ
          % cc -xildon main.o libfoo.a # 2 ܤΥ (ʬ)
          % ./a.out
          Calling myfunc1
          myfunc1 called!
           % nm a.out | grep myfunc
          [59]    |    68912|      32|FUNC |GLOB|0    |8     |myfunc1
          [60]    |    68960|      32|FUNC |GLOB|0    |8     |myfunc2

          # a.out ꤬褹

           % rm a.out                     # 󥯤򶯹
          % cc -xildon main.o libfoo.a   # 3 ܤΥ ()
          % nm a.out | grep myfunc
          [58]    |    68832|      32|FUNC |GLOB|0    |8     |myfunc1

          Τ褦꤬ȯǽ륱ޤ

          two.o Ƥ뤤ĤΥܥ뤬ץ̤
          ǤƤ֤ two.o ȡ
          Ͻʣܥ륨顼ˤʤޤ

          a.out 򸡺 dbx ʤɤΥġϡtwo.o ޤޤƤ뤳
          򸡽ФޤȤС2 ܤΥ󥯤줿ե
          Ф dbx ¹Ԥȡmyfunc2 Ǥߤ׵᤹뤳Ȥ
          ޤϽǤϤޤ󤬡򾷤ǽ
          ޤ

          ؼΥ顼ȯ뤳Ȥ⤢ޤʤ
          饤֥Τ¾ϥեˤ륷ܥؤͣλ
          Ȥtwo.o ˴ޤޤƤ뤳Ȥޤξϡɬ
          ¿ϥե뤬Ф뤳Ȥˤʤޤ
          ֥饤֥Ǥ⡢嵭Τ줫꤬ȯ
          ǽޤ

          ץॳ:

          % cat main1.c
          #include <stdio.h>
          extern void myfunc1(void);

          int main(void)
          {
                 (void)printf("Calling myfunc1\n"); myfunc1();
                 return 0;
          }

          % cat main2.c
          #include <stdio.h>

          extern void myfunc1(void), myfunc2(void);

          int main(void)
          {

                 (void)printf("Calling myfunc1!\n"); myfunc1();
                 (void)printf("Calling myfunc2!\n"); myfunc2();
                 return 0;
          }

          % cat one.c
          #include <stdio.h>

          void myfunc1(void)
          {
                 (void)printf("myfunc1 called!\n");
          }

          % cat two.c
          #include <stdio.h>

          void myfunc2(void)
          {
                 (void)printf("myfunc2 called!\n");
          }



     ------------------------------------------------------------------

     F. »ȸߴ

     ǤϿϤޤ



     ------------------------------------------------------------------

     G. Ҥθ

     ǤϿϤޤ



     ------------------------------------------------------------------

     Copyright  2003 Sun Microsystems, Inc. All rights reserved. Use
     is subject to license terms.
