Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can know in memory someone addresses in free list Pin
00000000098-Oct-05 14:41
00000000098-Oct-05 14:41 
AnswerRe: how can know in memory someone addresses in free list Pin
Jose Lamas Rios8-Oct-05 15:03
Jose Lamas Rios8-Oct-05 15:03 
GeneralI want to know specific memory address is use or free Pin
00000000098-Oct-05 16:21
00000000098-Oct-05 16:21 
AnswerRe: how can know in memory someone addresses in free list Pin
John R. Shaw8-Oct-05 20:55
John R. Shaw8-Oct-05 20:55 
QuestionSlow access to array Pin
rudo328-Oct-05 12:27
rudo328-Oct-05 12:27 
QuestionRe: Slow access to array Pin
Jose Lamas Rios8-Oct-05 14:27
Jose Lamas Rios8-Oct-05 14:27 
AnswerRe: Slow access to array Pin
rudo329-Oct-05 0:21
rudo329-Oct-05 0:21 
AnswerRe: Slow access to array Pin
Rage_bla8-Oct-05 14:30
Rage_bla8-Oct-05 14:30 
Are you sure you mean:
M3[1]=M1[1]*M2[1];
and not something like:
M3[k]=M1[i]*M2[j];

If you were really talking about the first I can't see how it would be possible to be any slower/different than the second example you posted.

If you really ment M3[k]=M1[i]*M2[j] read on:

First, compile with optimizations turned on.

It that doesn't work try using pointers:

for (pj = &j[0]; pj < &j[1000] ; pj++)
for (pi = &i[0]; pi < &i[1000] ; pi++)
for (pk = &k[0]; pk < &k[1000] ; pk++)
*pk=(*pi)*(pj);

Smart compilers might do this for you automaticaly.

H.

-- modified at 20:31 Saturday 8th October, 2005
GeneralRe: Slow access to array Pin
rudo329-Oct-05 0:24
rudo329-Oct-05 0:24 
GeneralRe: Slow access to array Pin
Rage_bla9-Oct-05 3:58
Rage_bla9-Oct-05 3:58 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 5:41
rudo329-Oct-05 5:41 
GeneralRe: Slow access to array Pin
Rage_bla9-Oct-05 5:54
Rage_bla9-Oct-05 5:54 
AnswerRe: Slow access to array Pin
John R. Shaw8-Oct-05 21:20
John R. Shaw8-Oct-05 21:20 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 0:26
rudo329-Oct-05 0:26 
GeneralRe: Slow access to array Pin
John R. Shaw9-Oct-05 0:54
John R. Shaw9-Oct-05 0:54 
GeneralRe: Slow access to array Pin
rudo329-Oct-05 3:08
rudo329-Oct-05 3:08 
GeneralRe: Slow access to array Pin
John R. Shaw12-Oct-05 11:18
John R. Shaw12-Oct-05 11:18 
QuestionFree C++ .Net compiler questions Pin
Jim Crafton8-Oct-05 9:11
Jim Crafton8-Oct-05 9:11 
AnswerRe: Free C++ .Net compiler questions Pin
John R. Shaw8-Oct-05 23:11
John R. Shaw8-Oct-05 23:11 
GeneralRe: Free C++ .Net compiler questions Pin
Jim Crafton9-Oct-05 4:56
Jim Crafton9-Oct-05 4:56 
QuestionModeless dialog communicating with parent dialog Pin
fjlv20058-Oct-05 9:08
fjlv20058-Oct-05 9:08 
AnswerRe: Modeless dialog communicating with parent dialog Pin
Jose Lamas Rios8-Oct-05 14:32
Jose Lamas Rios8-Oct-05 14:32 
QuestionRe: Modeless dialog communicating with parent dialog Pin
fjlv20059-Oct-05 18:42
fjlv20059-Oct-05 18:42 
QuestionHow in CEdit to install the cursor in anchor point? Pin
pup20028-Oct-05 7:36
pup20028-Oct-05 7:36 
AnswerRe: How in CEdit to install the cursor in anchor point? Pin
Mircea Puiu8-Oct-05 21:03
Mircea Puiu8-Oct-05 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.