Ãæ³²´ëÇб³ ¹°¸®Çаú ¿À º´¼º |
g77°ú ÇÔ²² PFE »ç¿ëÇϱâ (Using PFE with g77)
´ÙÀ½ÀÇ software°¡ °¢°¢ ´ÙÀ½ folder¿¡ ¼³Ä¡µÇ¾î ÀÖ´Ù°í °¡Á¤ÇÑ´Ù. ¹°¸®Çаú Àü»ê¹°¸® ½ÇÇè½Ç¿¡´Â ¾Æ·¡¿Í °°ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Ù.
g77 | | C:\G77\BIN |
PFE | | C:\PFE |
»ç¿ëÀÚ Programs | | A:\ |
floppy¸¦ ¹ÏÁö ¸» °Í ÁÖ±âÀûÀ¸·Î backup ÇϽÿä
PFE¸¦ »ç¿ëÇÏ¿© »ç¿ëÀÚ ÇÁ·Î±×·¥ ¸¸µé±â
- [½ÃÀÛ] - [ÇÁ·Î±×·¥] - [Fortran] - [PFE]¸¦ °í¸¥´Ù. pfe°¡ ½ÃÀ۵ȴÙ.
- [File] -> [New] ¸¦ °í¸¥´Ù.
- »ç¿ëÀÚ ÇÁ·Î±×·¥À» ÀÔ·ÂÇÑ´Ù.
- [File] -> [Save]¸¦ °í¸¥´Ù.
- ÇÁ·Î±×·¥À» ÀúÀåÇÏ°í ½ÍÀº folder¸¦ (ÀÌ °æ¿ì a:) °í¸¥´Ù.
- extensionÀ» .f (¶Ç´Â .for)·Î ÇÏ¿© filenameÀ» Àû´Â´Ù. ¿¹¸¦ µé¸é myprogram.f
»ç¿ëÀÚ ÇÁ·Î±×·¥ compileÇϱâ (Compiling your program)
-
[Execute] -> [DOS Command to Window] ¸¦ °í¸£°Å³ª F11 À» ´©¸¥´Ù.
- °è¼ÓµÇ´Â menu¿¡ ´ÙÀ½ Á¤º¸¸¦ ÀÔ·ÂÇÑ´Ù.
Command: |
c:\g77\bin\g77.exe a:\myprogram.f |
Directory: | a:\ |
First check for unsaved files: | yes |
Iconise Editor: | no |
- [OK]¸¦ ´©¸¥´Ù. g77ÀÌ ½ÃÀÛµÇ°í ±× °á°ú°¡ ȸ鿡 ³ªÅ¸³¯ °ÍÀÌ´Ù.
- ¿À·ù°¡ ¹ß»ýÇÏ¸é ¼öÁ¤ÇÏ°í À§ °úÁ¤À» µÇÇ®ÀÌ ÇÑ´Ù.
- unix¿¡¼ ±×·¸µíÀÌ ¸¸µé¾îÁø ½ÇÇà fileÀº a.exe·Î À§ÀÇ °æ¿ì a:¿¡ ÀúÀåµÇ¾î ÀÖ´Ù. ÇÊ¿äÇϸé ÀÌ ½ÇÇà fileÀÇ À̸§À» ¹Ù²Ù¸é µÈ´Ù. ¶Ç´Â ¾Õ¿¡¼ compile Çϱâ À§ÇÑ menu ¼³Á¤ Áß
- Command:
c:\g77\bin\g77.exe a:\myprogram.f
´ë½Å
|
c:\g77\bin\g77.exe -ooutfilename a:\myprogram.f
À¸·Î Çϸé a.exe ´ë½Å outfilename.exe°¡ ¸¸µé¾îÁø´Ù.
compileÇÑ »ç¿ëÀÚ ÇÁ·Î±×·¥ ¼öÇàÇϱâ (Running your compiled program)
-
[Execute] -> [Launch Application] (¶Ç´Â shift and F11 )À» ¼±ÅÃÇÑ´Ù.
- °è¼ÓµÇ´Â menu¿¡ ´ÙÀ½ Á¤º¸¸¦ ÀÔ·ÂÇÑ´Ù.
Command: | a:\a.EXE ¶Ç´Â a:\outfilename.EXE |
Directory: | a:\ |
First check for unsaved files: | yes |
Iconise Editor: | no |
- [OK] ¸¦ ´©¸¥´Ù. - »ç¿ëÀÚ programÀÌ ½ÃÀ۵ȴÙ.
- ¹®Á¦°¡ ÀÖÀ¸¸é Á¶¾ðÀ» ±¸ÇÑ´Ù.
Ãæ³²´ëÇб³ ¹°¸®Çаú ¿À º´¼º
|