Thanks in advance
Garrison
On Oct 8, 2011, at 3:53 PM, Garrison Venn wrote:
> I just ported the libcpu project to llvm tot (3.0) enough so that it builds without warnings, however I'm not sure if the result works (on OS X 10.7.1). Seems like the fibonacci test only works for m88k, the others seem to continually dump the module. Since the project does not seem too active, I don't want to bother going forward in my debugging effort if project is no longer in any use. Is this worth while pursuing?
First of all thank you very much for updating libcpu to 3.0 llvm. I had a few patches to keep it in sync somewhere in my trees but I never cleaned/committed them.
As for me, I think it would be very useful to keep libcpu up-to-date. There are many things that definitely need to be improved, yet libcpu is definitely an useful and interesting project. As for me, I am very interested in this project and hopefully I'll be active again in the near future.
Thanks again,
Gianluca
Thanks in advance
Garrison
I can carry it in my tree if you want:
https://github.com/penberg/libcpu
I might even push it to the official svn repository if I find my
password somewhere...
Pekka
> I might even push it to the official svn repository if I find my
> password somewhere...
That's the same problem I have with current svn. I'd say to post the patch to the list, so that we can check it, test it and Pekka can push it to its own git tree.
Thanks again,
Gianluca
1) There was a build warning that I did not see before. I did not check to see if the grammar rule in question was hit (yacc/bison warning).
[BISON][UpccParser] Building parser with bison 2.3
ast/parser.y: conflicts: 81 shift/reduce, 81 reduce/reduce
ast/parser.y:444.27-34: warning: rule never reduced because of conflicts: primary_expr: mem_expr
2) Except for branches/glguida-bbhacks/libcpu/libcpu.h, I only made modifications to, and tested trunk.
3) I'm using test/scripts/m88k_fib.sh as my test case, but I don't really know if it is working as I did not check the fibonacci results although the test states both host and guest have the same result. As I implied before both arm_fib.sh, and mips_fib.sh just seem to continually regenerate and dump the module without generating results. Beyond running cbmbasic.sh to get a prompt, I never entered any basic commands. ./build/libcpu/run_m88k test/bin/m88k/openbsd/date crashes. I did not conduct any other tests.
4) I use this weird combination of vi in emacs (viper mode), and have my indentation set to spaces for tabs. While I was editing, I could not tell what indentation standard was being used for this project so I left my sw set to 8. This will result in a different alignment if 8 spaces for a tab is not the correct indentation setting. What is the indentation being use?
5) This was a very quick syntax port so someone may want to refine it to the proper style/coding conventions :-). Making the git mirror the real repository would be nice. Is this possible?
Garrison
Garrison
> <initLlvm3_0Port.patch>
Tested with gcc and clang on OS X 10.7.1
I'm happy to review and merge patches unless other devs object to that.
Is this supposed to work with LLVM 2.8 or is 3.0 API incompatible?
Garrison
Michael
I have created a Github organization for us:
I'll convert the Subversion repository to Git but I'd like to map svn
users to git users. Here's what I have so far:
abbeyj = James Abbatiello
dave = David Anderson
gianluca = Gianluca Guida
johnk = ?
masteraxl = ?
me = ?
mist = Michael Steil
orlando = Orlando Bassotto
penberg = Pekka Enberg
stevi = ?
tilmann = Tilmann Scheller
I'll look up email addresses from the mailing list if that's OK with everyone.
Pekka
Garrison
Maybe an ARM disassembler might follow later...
ciao
Von meinem iPad gesendet
Right. That's somewhat unfortunate as Fedora 15, for example, ships with 2.8.
Is there no sane way to support both? Is aggressive upgrades recommended
by the LLVM developers?
Pekka
Personally I have a fair degree of confidence with their approach since they have buildbots running continuously against regression tests. It is not to say that there are not bugs, or that their regression, or buildbot system does not have problems from time to time, but relatively speaking it is pretty stable especially for an open source project. I usually stay between 2 to 3 weeks out, and build from source.
Again though I understand if there is reticence in this regard since libcpu is not tied to LLVM dev branches. Your call. You could create a git branch for 3.0. The LLVM 3.0 (TOT) will be branched and frozen in 2 weeks, with a an official release coming sometime afterwards.
Hope this helps
Garrison
Only the major releases are not backward compatible to some extent. 1.9 was incompatible with 2.0. 2.8 and 2.9 are incompatible with the next release: 3.0. Version 3.0 branches in only a few weeks so ToT is very close to what the 3.0 release will be.
Just thought I'd add that,
--Sam Crow
Well, that's the thing, I worry that it'll create extra hassle for
people who want to try
out libcpu. That said, it seems we don't even support LLVM 2.8 so your
patch is an
improvement over the current situation.
I'll get the libcpu tree moved over to github first and then revisit your patch.
Pekka
Garrison
On Mon, Oct 10, 2011 at 10:35 PM, Garrison Venn <garris...@gmail.com> wrote:
> Sounds good to me.
Your patch won't apply on top of latest master because I did some
fixes to make libcpu compile with LLVM 2.8:
https://github.com/libcpu/libcpu
I'm happy to create a new llvm-3.0 branch on github and put your
changes there if you rebase your patch. I'd prefer to keep master
working with 2.8 until Fedora and other Linux distributions start
shipping 3.0.
Pekka
Should not be too bad.
Garrison