Skip to content

LLVM – The Hind Leg Works!

November 4, 2014

After a couple more interchanges with pierre-andre saulais, who has been very patient, I got the back end part of the “leg” tutorial working(“leg” is a subset of the arm architecture used in the tutorial). As of now, I can convert code compiled by leg-clang to leg-assembly and, even more excitingly to elf binaries. I’m looking forward to doing this for the 1802 so i can implement my own assembler. Tres exciting!

Pierre-Andre also gave me a clang folder but it won’t compile yet.

my first output:

	.file	"./llvm-leg-leg_for_release_34/docs/Codeplay/examples/ex1/ex1.ll"
	.globl	foo
	.type	foo,@function
foo:                                    # @foo
# BB#0:                                 # %entry
	add r0, r0, r1
# BB#1:                                 # %exit
	bx lr
	.size	foo, .tmp0-foo

	.ident	"clang version 3.5.0 "

From → LLVM

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: