diff cbackend.js @ 361:06dceff348ea

llcompile now has Hacky support for calling C functions using dl to lookup symbols and almost has support string constants
author Michael Pavone <pavone@retrodev.com>
date Thu, 23 Apr 2015 19:24:20 -0700
parents 7279e21dad68
children 6b5096b07dd5
line wrap: on
line diff
--- a/cbackend.js	Tue Apr 21 09:00:56 2015 -0700
+++ b/cbackend.js	Thu Apr 23 19:24:20 2015 -0700
@@ -984,6 +984,14 @@
 			'return (object *)ret;'
 		]
 	});
+	cptr.addMessage('address', {
+		vars: {intret: 'obj_uint64 *'},
+		lines: [
+			'intret = make_object(&obj_uint64_meta, NULL, 0);',
+			'intret->num = (uint64_t)self->val;',
+			'return intret;'
+		]
+	})
 	return cptr;
 }