Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Mercury (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Back-ends== Mercury has several back-ends, which enable compiling Mercury code into several languages, including: ===Production level=== * Low-level [[C (programming language)|C]] for [[GNU Compiler Collection]] (GCC), the original Mercury back-end * High-level C * [[Java (programming language)|Java]] * [[C Sharp (programming language)|C#]] ===Past=== * [[Assembly language]] via the GCC back-end * Aditi, a deductive database system also developed at the [[University of Melbourne]]. Mercury-0.12.2 is the last version to support Aditi.{{citation needed|date=January 2014}} * [[Common Intermediate Language]] (CIL) for the [[.NET Framework]] * [[Erlang (programming language)|Erlang]] Mercury also features a foreign language interface, allowing code in other languages (depending on the chosen back-end) to be linked with Mercury code. The following foreign languages are possible: {| class="wikitable" ! Back-end !! Foreign language(s) |- | C (both levels) | [[C (programming language)|C]] |- | Java | [[Java (programming language)|Java]] |- | Erlang | [[Erlang (programming language)|Erlang]] |- | IL | [[Common Intermediate Language]] (CIL) or [[C Sharp (programming language)|C#]] |} Other languages can then be interfaced to by calling them from these languages. However, this means that foreign language code may need to be written several times for the different backends, otherwise portability between backends will be lost. The most commonly used back-end is the original low-level C back-end.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)