Groups | Search | Server Info | Login | Register
Groups > comp.compilers > #3640
| From | Philipp Klaus Krause <pkk@spth.de> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Crypto friendly optimization? |
| Date | 2025-04-05 19:50 +0200 |
| Organization | Compilers Central |
| Message-ID | <25-04-001@comp.compilers> (permalink) |
| References | <24-08-003@comp.compilers> <24-08-004@comp.compilers> <24-08-008@comp.compilers> |
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 <string.h>
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
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Crypto friendly optimization? John R Levine <johnl@taugh.com> - 2024-08-24 17:14 -0400
Re: Crypto friendly optimization? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-08-24 16:33 -0700
Re: Crypto friendly optimization? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-08-24 20:55 -0700
Re: Crypto friendly optimization? anton@mips.complang.tuwien.ac.at - 2024-08-25 16:06 +0000
Re: Crypto friendly optimization? David Brown <david.brown@hesbynett.no> - 2024-08-25 21:12 +0200
Re: Crypto friendly optimization? Philipp Klaus Krause <pkk@spth.de> - 2025-04-05 19:50 +0200
Re: Crypto friendly optimization? Ian Lance Taylor <ianlancetaylor@gmail.com> - 2024-08-24 20:14 -0700
Re: Crypto friendly optimization? David Brown <david.brown@hesbynett.no> - 2024-08-25 12:32 +0200
csiph-web