home bbs files messages ]

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

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

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

   Message 2,744 of 2,753   
   Philipp Klaus Krause to All   
   Re: Crypto friendly optimization?   
   05 Apr 25 19:50:48   
   
   From: pkk@spth.de   
      
   Am 25.08.24 um 18:06 schrieb anton@mips.complang.tuwien.ac.at:   
   >> I'm not aware of any current implementations that support it.   
   >   
   > That's trivial:   
   >   
   > void *memset_explicit( void *dest, int ch, size_t count )   
   > {   
   >    memset(dest, ch, count);   
   > }   
      
   SDCC has had memset_explicit since SDCC 4.2.0 (released 2021), and this   
   is the implementation:   
      
   #include    
      
   void *memset_explicit (void *s, int c, size_t n)   
   {   
      return(memset(s, c, n));   
   }   
      
   Since SDCC does not have link-time optimization, and the implementation   
   resides in its own source file by itself, this is sufficient to ensure   
   that it does not get optimized out.   
      
   Philipp   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca