由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Urgent question
相关主题
关于文件读取的C++ 问题?问一个C++文件读取的问题
有人能解释一下这段C++代码吗how to read a sentence into a vector of string?
How to read binary(data) file generated by Fortran in C/C++ (转载)C++ Q 99-102 (转载)
C++文件读取数值问题请教一个C++的问题
C++: How to read until the end of file?C++中如何数据文件一起build进exe文件中?
这个面试题有什么trick?C++ 在 windows 上 结果正确, 在 linux 上结果总是不一样,怎
How to read a simple csv file in C++?这样读多个文件对吗?
C++读文本文件怎么判断换行?Re: [转载] 这样读多个文件对吗?
相关话题的讨论汇总
话题: urgent话题: question话题: aix话题: c++话题: so
进入Programming版参与讨论
1 (共1页)
G*****9
发帖数: 3225
1
I used C++ to create a *.SO file, in which I read double values from text
files (ifstream>>). However, the speed is incredibly slow. The same code, if
compiled as .out, is 40 times faster. Can anyone tell me why?
I am using AIX and g++. Thanks.
p*u
发帖数: 2454
2

if
what r compiler flags u gave while building .so and .out? also check ld on
ur system...

【在 G*****9 的大作中提到】
: I used C++ to create a *.SO file, in which I read double values from text
: files (ifstream>>). However, the speed is incredibly slow. The same code, if
: compiled as .out, is 40 times faster. Can anyone tell me why?
: I am using AIX and g++. Thanks.

d****i
发帖数: 4809
3
AIX下面应该有自己的C++编译器吧(XL?), 试试AIX的native compiler。

if

【在 G*****9 的大作中提到】
: I used C++ to create a *.SO file, in which I read double values from text
: files (ifstream>>). However, the speed is incredibly slow. The same code, if
: compiled as .out, is 40 times faster. Can anyone tell me why?
: I am using AIX and g++. Thanks.

B***i
发帖数: 724
4
why this question is urgent?
G*****9
发帖数: 3225
5
It blocks my project.

【在 B***i 的大作中提到】
: why this question is urgent?
1 (共1页)
进入Programming版参与讨论
相关主题
Re: [转载] 这样读多个文件对吗?C++: How to read until the end of file?
[转载] Re: [转载] 这样读多个文件对吗?这个面试题有什么trick?
读取数据求教How to read a simple csv file in C++?
问一个打开文件的问题C++读文本文件怎么判断换行?
关于文件读取的C++ 问题?问一个C++文件读取的问题
有人能解释一下这段C++代码吗how to read a sentence into a vector of string?
How to read binary(data) file generated by Fortran in C/C++ (转载)C++ Q 99-102 (转载)
C++文件读取数值问题请教一个C++的问题
相关话题的讨论汇总
话题: urgent话题: question话题: aix话题: c++话题: so