www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/28/10:27:58

From: gminer AT Newbridge DOT COM (Glen Miner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Optimization
Date: 28 Nov 1996 13:46:09 GMT
Organization: Newbridge Networks Corporation
Lines: 29
Message-ID: <57k531$5bu@kannews.ca.newbridge.com>
References: <57hg9b$or5 AT kannews DOT ca DOT newbridge DOT com> <329C95AD DOT C3E AT silo DOT csci DOT unt DOT edu>
NNTP-Posting-Host: 138.120.136.238
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>> Since this code _is_ a port, I have noticed some data conversion too. An
>> int is no longer 16 bits long. Since I don't really need a 32 bit int in
>> the core code would it help at all for me to change things to "short
>> unsigned int"s?
>
>How did you notice the data conversions?

Data structures were no longer the same size.

> There shouldnt be any problem running 16 bit data in 32 bit form. 
> I don't understand what is your problem here??? How did you get 
> the feeling that your program would actually get slower if you use
> 32 bit data instead of 16 bit data.

Well, my logic is this: You have to move 2x as much data around; this
means your L1 cache fills up 2x as fast. This is not good. 

>P.S. I wonder what are you porting though because it is not clear in
>your post.

I'm porting a japanese chess game from borland to djgpp. Chech the url in
my sig if you really want to see it.

Peace

-- 
===[ Gabo / [ABC] : gaminer AT undergrad DOT math DOT uwaterloo DOT ca ]===================
Latest ABC Shogi: http://www.undergrad.math.uwaterloo.ca/~gaminer/shogi.html
"What Greenpeace spends in a year General Motors spends in four hours" -Moby

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019