https://github.com/Helium4Haskell/lvm
Revision 46f51177dafb737b46890df65f399ace348590b6 authored by Jurriaan Hage on 18 July 2014, 13:20:38 UTC, committed by Jurriaan Hage on 18 July 2014, 13:20:38 UTC
1. exchanging order of libraries and object files in linking since some gcc's demand this nowadays 2. for macosx: avoid the -fno-defer-pop flag since clang does not like it
1 parent 0f56588
Tip revision: 46f51177dafb737b46890df65f399ace348590b6 authored by Jurriaan Hage on 18 July 2014, 13:20:38 UTC
Two fixes:
Two fixes:
Tip revision: 46f5117
math1.core
module Math1 where
instruction primadd "addint" :: Int! -> Int! -> Int!
instruction primsub "subint" :: Int! -> Int! -> Int!
add x y = case x of x -> case y of y -> primadd x y
sub x y = case x of x -> case y of y -> primsub x y
-- test simple addition & substraction
main = sub 44 (add 1 1)
Computing file changes ...