Oberon space

General Category => Общий раздел => Тема начата: ilovb от Декабрь 27, 2012, 01:39:12 pm

Название: Oberon07 LLVM frontend
Отправлено: ilovb от Декабрь 27, 2012, 01:39:12 pm
https://github.com/hodzanassredin/oberon-llvm
Название: Re: Oberon07 LLVM frontend
Отправлено: ilovb от Декабрь 27, 2012, 01:41:37 pm
Фу ты блин. Не посмотрел содержимое  :(
Можно удалять тему
Название: Re: Oberon07 LLVM frontend
Отправлено: valexey_u от Декабрь 27, 2012, 01:54:24 pm
https://github.com/hodzanassredin/oberon-llvm
А ты исходники смотрел, или сразу запостил новую тему? Я вот посмотрел. Цитирую (это все исходники):
/* Hello World program */

#include<stdio.h>

main()
{
    printf("Hello World");
}

 ;D
Название: Re: Oberon07 LLVM frontend
Отправлено: valexey_u от Декабрь 27, 2012, 01:55:40 pm
Фу ты блин. Не посмотрел содержимое  :(
Можно удалять тему
На самом деле тема как таковая имеет смысл - можно попробовать кодогенератор в llvm прикрутить к имеющемуся Оберон-07/11 компилятору.
Название: Re: Oberon07 LLVM frontend
Отправлено: Romiras от Декабрь 31, 2012, 11:19:01 am
наподобие такого
...
 #include <llvm/llvm.h>
...
llvm_gen_code(X86_32);
...

:D
Название: Re: Oberon07 LLVM frontend
Отправлено: Kemet от Декабрь 31, 2012, 11:27:21 am
Смех cмехом, но здесь (http://www.ohloh.net/p/m2r10) есть Modula-2 R10 with C and LLVM backend
Название: Re: Oberon07 LLVM frontend
Отправлено: Romiras от Декабрь 31, 2012, 11:49:33 am
Смех cмехом, но здесь (http://www.ohloh.net/p/m2r10) есть Modula-2 R10 with C and LLVM backend
Пока это только их планы:
Цитата: https://bitbucket.org/trijezdci/m2r10/overview
A reference compiler  for Modula-2 R10 has been  under development  since 2010
but work had been suspended  until the design has been finalised.  Work on the
compiler  is scheduled to resume  mid-December 2012.  Initially,  the compiler
will generate C99 source code.  Eventually, it will also generate LLVM IR.
Название: Re: Oberon07 LLVM frontend
Отправлено: Kemet от Декабрь 31, 2012, 01:01:50 pm
ну в С тоже неплохо. Интересный вариант языка. Надо попробовать собрать и тесты погонять