Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dagit/zenc
GHC's Core name mangling (Z-Encoding)
https://github.com/dagit/zenc
Last synced: about 6 hours ago
JSON representation
GHC's Core name mangling (Z-Encoding)
- Host: GitHub
- URL: https://github.com/dagit/zenc
- Owner: dagit
- License: bsd-3-clause
- Created: 2011-05-08T03:42:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-03-03T23:05:01.000Z (over 2 years ago)
- Last Synced: 2023-04-11T01:07:25.135Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text.Encoding.Z
## The Z-encoding
`zEncodeString` is a name-encoding and decoding function. It encodes any ascii
string into a string that is acceptable as a C name. This is code was originally
part of GHC and used right before emitting a symbol name into the compiled C or
asm code. This library was created as this encoding is useful when working with
GHC compiled code or generally when C-compatible name mangling is desired.`zDecodeString` is the inverse operation.