1 / 7

Fortran 程式語言 之 編與譯(二)

Fortran 程式語言 之 編與譯(二). 張基昇. MS-Fortran 使用指南. MS-Fortran 執行編譯相關資訊與檔案 共有五個檔案,名稱為: for1.exe 、 pas2.exe 、 link.exe 、 fortran.lib 、 math.lib 以 notepad 或 pe2 編輯程式且須為 .for 的副檔名 , 如 : t1.for 老師已經將 【 上述五個檔案 】 放置在網路學園的課程公告裡,同學可以直接 『 另存目標 』 在您電腦中,呼叫使用。. MS-Fortran 使用指南.

oke
Download Presentation

Fortran 程式語言 之 編與譯(二)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fortran 程式語言之編與譯(二) 張基昇

  2. MS-Fortran 使用指南 • MS-Fortran 執行編譯相關資訊與檔案 • 共有五個檔案,名稱為:for1.exe、pas2.exe、link.exe、fortran.lib、math.lib • 以 notepad 或 pe2 編輯程式且須為 .for 的副檔名, 如:t1.for • 老師已經將【上述五個檔案】放置在網路學園的課程公告裡,同學可以直接『另存目標』在您電腦中,呼叫使用。

  3. MS-Fortran 使用指南 • MS-Fortran 執行編譯相關資訊與檔案(1) • 三個執行檔 for1.exe、pas2.exe、link.exe 可置於任意的子目錄例如若放置 【c:\for77】中 • fortran.lib、math.lib 要放置於工作目錄【c:\cjs】 • 請依次執行C:\cjs>c:\for77\for1t1; C:\cjs>c:\for77\pas2C:\cjs>c:\for77\linkt1; 

  4. MS-Fortran 使用指南 • MS-Fortran 執行編譯相關資訊與檔案(2) • 三個執行檔 for1.exe、pas2.exe、link.exe 與兩個數學資訊庫fortran.lib、math.lib 要放置於工作目錄如【c:\cjs】中 • 請依次執行C:\cjs>for1t1; C:\cjs>pas2 C:\cjs>linkt1;

  5. MS-Fortran 使用指南 • MS-Fortran 執行編譯相關資訊與檔案(3) • 可利用pe2或notepad編輯一個批次檔如 f.bat • F.bat檔案內容為for1%1;pas2 link%1; • %1 代表等一會要執行編譯的 fortran77 程式檔案

  6. MS-Fortran 使用指南 • MS-Fortran 執行編譯相關資訊與檔案(4) • F.bat 檔案內容,若使用(1)之檔案安置方式則為c:\for77\for1%1;c:\for77\pas2 c:\for77\link%1; • 若已經完成 fortran77 程式檔案編輯,檔案名稱為 t1.for • 執行c:\cjs>ft1

  7. 一個虛擬的世界 • 劇情如何發展?敬請期待!

More Related