我一直在使用STL和標準流庫將Solaris上的項目從compat模式(4)遷移到64位。 大多數情況下,我已經克服了很多問題。然而,我遇到了一些有關流和破壞的問題。 ---- called from signal handler with signal 10 (SIGBUS) ------
[7] realfree(0x108be78e8, 0x5554d45f54d7d4d7, 0x1da5
首先,我對此很新。 我試圖編譯T1架構和仿真建模工具(http://www.oracle.com/technetwork/systems/opensparc/opensparc-t1-page-1444609.html),使用Sun Studio 12.3作爲帶有Sparc處理器的Solaris 10編譯器。 我正在運行腳本「build_sas.sh」並且遇到編譯錯誤。 --- Building
我想爲sparc機器編寫下面的代碼。 y=(x-7)(x-11) for the range 0<=x<=10
,我想打印出以下這樣的代碼for input of x=0 output y=77等多達十個。 我設法讓循環。但我的問題是打印輸出。 /*
This program will compute y=(x-7)(x-11)
for the range 0<=x<=1