由买买提看人间百态

topics

全部话题 - 话题: comipled
(共0页)
s**********o
发帖数: 14359
1
当然可以,但是没有SERVICE LAYER不太好管理
比如要添一个COLUMN,还得打开你的C啥铺CODE就重新COMPILE,
如果添个报表又要重新弄好多东西COMIPLE,万一出问题
整个SITE就挡了。自己玩玩还行,公司里你的报表一会有
一会没有,人就开始怀疑你的数据的可信度。

procedure.
dashboard.
b******a
发帖数: 215
2
来自主题: Programming版 - 嵌入式编程问题
compiler的优化有时间好像也会有问题。
我以前用analog的 visual DSP在他自己的DSP上跑大规模的模拟程序,算法的核心就是
矩阵的LU变换。这个东西得C语言的算法已经很成熟了,但是在DSP上如果不做优化的话
,基本上不能用,速度太慢了。但是如果用comipler的优化选项打开,选择优化到最少
的运行时间,编译好的程序跑出来的结果总是不对,一个4x4的矩阵的LU分解都算不对
,不知道为什么。
后来就是自己手工写asm码,loop unrolling加上DSP支持的SIMD,速度差不多提高了20
多倍。
j****i
发帖数: 305
3
来自主题: Programming版 - C++ optimization question
Does the gcc compiler optimize the following code?
std::vector v(5);
std::vector::iterator it;
for(it = v.begin(); it != v.end(); it++)
Or is it faster to do this:
std::vector v(5);
std::vector::iterator it;
std::vector::iterator end(v.end());
for(it = v.begin(); it != end; ++it)
Note that the temp variable end, and the preincrement of it.
I was reading Exceptional C++ and it says the second way is faster, but I'm
wondering if the comipler has gotten better since the boo
x******a
发帖数: 6336
4
来自主题: Programming版 - 我写的这个C++错在哪里?
comiple的时候提示”Segmentation fault: 11“
void merge(int a[], int const p, int const q, int const r)
{
int n=q-p;
int m=r-q;
int L[n+1];
int R[m+1];
//copy the left part
for(int i=0; i {
L[i]=a[p+i];
}
//copy the right array
for(int j=0; j {
R[j]=a[q+j];
}
int i=0;
int j=0;
while( i {
if(L[i] {
a[i+j]=L[j];
i++;
}
else
{
a[i+j]=R[j];
j++;
}
}

if(i==n)
{
... 阅读全帖
h**********c
发帖数: 4120
5
来自主题: Programming版 - 混编的英文怎么说?
Compile MEX-function from C/C++ or Fortran source code
http://www.mathworks.com/help/techdoc/ref/mex.html
To work the other way round,
Interface MATLAB code with C/C++ (MATLAB 6.5 (R13) or earlier)
http://www.mathworks.com/support/compilers/interface_r13.html
normally such term is called cross-platform, cross-comipler cross- somthing,
or interoperability inter- something.
Did some such experiments before, proved to be not very flexibly. Matlab set
a lot of limits. So you heap won't be big enough... 阅读全帖
G***l
发帖数: 355
6
来自主题: Programming版 - 大家难道全是半路出家?
java generic是type erase,换句说法就是语法糖。。。相当于comipler给你加上强制
类型转换之类的,到了byte code就没了。ArrayList跟ArrayList
jvm里都是ArrayList
s*******g
发帖数: 243
7
来自主题: Programming版 - Java Streams vs C# LINQ vs Java6
是很verbose,稍微复杂点就影响可读性了。FP的语言抛开不谈,C#, C++11, Python里
面的都清爽很多,绝大多数时候都提高了代码可读性。不知道为什么Java的不能设计的
简洁点,做comipler的偷懒还是JVM里有什么限制?
h**********c
发帖数: 4120
8
来自主题: Programming版 - 关于新语言的想法
it is necessary if not sufficient that programmable language is regular
language, so the symbol rules will deterministically lead to results.
Nature language is a biological language of physics words that has no
literals at least well defined. That should be understood as dynamical
system (stability, bifurcation, chaotic analyisis).
Basic understanding of comiplers and cpu architecure,
-- my five cents opinion
r***o
发帖数: 1526
9
来自主题: Unix版 - CXterm help!
I comipled and installed cxterm under solaris 2.7 in my home directory.
when I telnet to bbs, it just display ASCII characters.
Any suggestions?
I think it is an environment problem not font problem.
(共0页)