记忆分配 [英] MEMORY ALLOCATION

查看:65
本文介绍了记忆分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我建了一个softwaare(4个有限元),现在我解决了所有的数学问题我试图扩展一些信息技巧。

我从cmd(在XP下)调用EXE文件,我发现像

这样糟糕的发现,argvector的字符串长度必须不超过127个字符.. 。

除了1件事我解决了所有问题:

我正在使用Borland TC,尺寸紧凑,尺寸合适(尺寸更大)
中动态调整动态向量...

但是有可能我不能达到7 * 400 * sizeof(float) = 11200字节

我假设没有内存溢出或应用程序冻结?????

为什么我不能写作成功

int _stklen = desidered dimension; ???

任何人在XP下遇到同样的问题?

如何分配大内存块?我的程序至少比Matlab解算器快300倍... b $ b ...但只要我不能处理大的

实例这个计算能力就没用了


提前致谢

解决方案


$ b $bPoincarè_è_andato写道:


大家好,



问两个主题行的问题是否更多

重要吗?


我正在使用具有紧凑尺寸的Borland TC用于堆栈尺寸(具有更大的

尺寸EXES提高windows ferocity)和我通过常规方式在
中动态定位动态向量...



" compact size" ???那是什么?


但是有可能我达不到7 * 400 * sizeof(float)= 11200 bytes



绝对不会太大。


我假设没有内存溢出或应用程序冻结?????



我们也可以猜测。没有代码,它就是我们所能做的一切。


为什么我不能成功写作

int _stklen = desidered尺寸;???



什么是stklen?


任何人在XP下遇到同样的问题?



不要使用20岁的16位C编译器...


如何分配大内存块?我的程序至少比Matlab解算器快300倍... b $ b ...但只要我不能处理大的

实例这个计算能力就没用了



使用适用于像XP这样的32位操作系统的现代C编译器。


Tom




Tom St Denis写道:

$ b $bPoincarè_è_andato写道:


大家好,



问两个主题的问题是否更多

重要的是?


我正在使用Borland TC,其尺寸紧凑,适用于堆栈尺寸(更大的尺寸,价格为b $ b尺寸EXES提高窗口速度)我动摇的动态向量在

通常的方式...



" compact size" ???那是什么?


但是有可能我达不到7 * 400 * sizeof(float)= 11200 bytes



绝对不会太大。


我假设没有内存溢出或应用冻结?????



我们也可以猜到。没有代码,它就是我们所能做的一切。


为什么我不能成功写作

int _stklen = desidered尺寸;???



什么是stklen?


任何人在XP下遇到同样的问题?



不要使用20岁的16位C编译器...


如何分配大内存块?我的程序至少比Matlab解算器快300倍... b $ b ...但只要我不能处理大的

实例这个计算能力就没用了



使用适用于像XP这样的32位操作系统的现代C编译器。


Tom



嗨汤姆......你有这个问题并解决了32位编译问题吗?

嘿,对不对,我21岁......我希望你的目标是帮助


2006年11月20日19:26:05 -0800,Poincarè_è_andato

< comp.lang.c中的ag********@tiscali.itwrote:


大家好,


我建立了一个softwaare(4个有限元),现在我解决了所有的数学问题,我正试图扩展一些信息技能。

我从中调用EXE文件cmd(在XP下)我发现了很糟糕的发现,比如

argvector的字符串长度必须不超过127个字符......

我解决了所有问题,除了一件事:

我正在使用Borland TC,其尺寸紧凑,适用于堆栈尺寸(更大的尺寸EXES提高窗口凶猛度)我动画了动态矢量

通常的方式...

但是有可能我达不到7 * 400 * sizeof(浮动)= 11200字节

我假设没有内存溢出或应用程序被冻结?????

为什么我不能在书面上取得成功

int _stklen = desidered dimension; ???

任何人在XP下遇到同样的问题?

如何分配大内存块?我的程序至少比Matlab解算器快300倍... b $ b ...但只要我不能处理大的

实例这个计算能力就没用了


提前付款



1.不要两次使用两个不同的标题发布相同的问题,一个

分钟。


2.看到我对你的第一篇文章的回复。


-

Jack Klein

主页: http://JK-Technology.Com

常见问题解答

comp.lang.c http://c-faq.com/

comp.lang.c ++ http://www.parashift.com/c++-faq-lite/

alt.comp.lang.learn.c -c ++
http:/ /www.contrib.andrew.cmu.edu/~a。 ..FAQ- acllc.html


Hi all,

I built a softwaare (4 finite elements) and now that i solved all
maths troubles i''m trying to expand some informatic skills.
I call EXE file from cmd (under XP) and i made bad discoveries like
that string for argvector must be not more than 127 chars long...
I solved all except 1 thing:
I''m using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...
but is that possible that i can''t reach 7*400*sizeof(float)=11200 bytes
I presume without getting memory overflow or application frozen?????
And why i can''t succed in writing
int _stklen = desidered dimension;???
Anyone had the same problem under XP?
How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can''t work on big
instances this computational power gets useless

Thanks in advance

解决方案


Poincarè_è_andato wrote:

Hi all,

Hi, does asking the question with two subject lines make it more
important?

I''m using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...

"compact size" ??? what''s that?

but is that possible that i can''t reach 7*400*sizeof(float)=11200 bytes

Definitely not too large.

I presume without getting memory overflow or application frozen?????

We can guess too. Without code it''s about all we can do.

And why i can''t succed in writing
int _stklen = desidered dimension;???

What is stklen?

Anyone had the same problem under XP?

Don''t use a 20 year old 16-bit C compiler ...

How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can''t work on big
instances this computational power gets useless

Use a modern C compiler meant for a 32-bit os like XP.

Tom



Tom St Denis wrote:

Poincarè_è_andato wrote:

Hi all,


Hi, does asking the question with two subject lines make it more
important?

I''m using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...


"compact size" ??? what''s that?

but is that possible that i can''t reach 7*400*sizeof(float)=11200 bytes


Definitely not too large.

I presume without getting memory overflow or application frozen?????


We can guess too. Without code it''s about all we can do.

And why i can''t succed in writing
int _stklen = desidered dimension;???


What is stklen?

Anyone had the same problem under XP?


Don''t use a 20 year old 16-bit C compiler ...

How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can''t work on big
instances this computational power gets useless


Use a modern C compiler meant for a 32-bit os like XP.

Tom

Hi Tom... u had this problem and solved compiling with 32 bit?
Hey u r right, i''m 21 y old.... I hope your aim was to help


On 20 Nov 2006 19:26:05 -0800, "Poincarè_è_andato"
<ag********@tiscali.itwrote in comp.lang.c:

Hi all,

I built a softwaare (4 finite elements) and now that i solved all
maths troubles i''m trying to expand some informatic skills.
I call EXE file from cmd (under XP) and i made bad discoveries like
that string for argvector must be not more than 127 chars long...
I solved all except 1 thing:
I''m using Borland TC with compact size for stack dimension (with bigger
sizes EXES raise windows ferocity) and I mallocated dynamic vectors in
usual way...
but is that possible that i can''t reach 7*400*sizeof(float)=11200 bytes
I presume without getting memory overflow or application frozen?????
And why i can''t succed in writing
int _stklen = desidered dimension;???
Anyone had the same problem under XP?
How to allocate big memory blocks? My program is at least 300 times
faster than Matlab solvers....but as long as i can''t work on big
instances this computational power gets useless

Thanks in advance

1. Don''t post the same question twice with two different titles, one
minute apart.

2. See my reply to your first post.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


这篇关于记忆分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆