[英]C++ preprocessor removes whitespace in calls to variadic macros (Solaris Studio 12.3)
[英]Solaris 12.3 C++ compiler out of memory
我有一個24MB的Swig生成的C ++代碼文件,將近500萬行代碼。 將編譯器優化級別設置為xO0時,我能夠對其進行編譯,但是一旦添加任何其他C ++編譯器標志(如xprofile ...),它就會失敗。 我正在使用Solaris Studio 12.3 C ++編譯器。
以下是控制台錯誤:
Element size (in bytes): 48
Table size (in elements): 2560000
Table maximum size: 134217727
Table size increment: 5000
Bytes written to disk: 0
Expansions required: 9
Segments used: 1
Max Segments used: 1
Max Segment offset: 134217727
Segment offset size:: 27
Resizes made: 0
Copies due to expansions: 4
Reset requests: 0
Allocation requests: 2827527
Deallocation requests: 267537
Allocated element count: 4086
Free element count: 2555914
Unused element count: 0
Free list size (elements): 0
ir2hf:錯誤:內存不足
提前致謝。
我發現本文暗示它與Solaris數據段的內存量有關。
按照博客中的步驟,嘗試刪除限制。
$ usermod -K defaultpriv=basic,sys_resource karel
現在注銷並再次登錄並更改限制:
$ ulimit -d unlimited
然后檢查限制是否已更改
$ ulimit -d
輸出應該是unlimited
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.