home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 129,832 of 131,241   
   Anton Ertl to Michael S   
   Re: sign/zero/garbage extension (was: Ti   
   05 Oct 25 11:58:14   
   
   From: anton@mips.complang.tuwien.ac.at   
      
   Michael S  writes:   
   >On Sat, 04 Oct 2025 16:11:37 GMT   
   >anton@mips.complang.tuwien.ac.at (Anton Ertl) wrote:   
   >   
   >>   
   >> AFAIK Rust does not have a machine-word-sized integer type; instead,   
   >> each type has its size in its name (e.g., i32, u64).   
   >   
   >Rust has machine-dependent isize and usize types   
      
   Good.  But for some reasons all the examples I have seen use   
   integer types like i32 and u64.   
      
   >identical to ptrdiff_t and size_t in C.   
      
   I have read that there are C implementation (variants) where ptrdiff_t   
   and size_t are smaller than a pointer, in particular large-model C on   
   the 8086, and that was the reason for C standard restrictions about   
   pointer subtraction and pointer inequality comparison.   
      
   I hope nobody is doing large-model Rust, even though Rust may be more   
   appropriate for that than C.   
      
   - anton   
   --   
   'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'   
     Mitch Alsup,    
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca