-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.txt
75 lines (50 loc) · 1.86 KB
/
setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
title : Environment Setup
description : How To Set Up A Myrddin Environment
}
Installing the Binaries
-----------------------
To get the source, for the compiler, standard library, and myrbuild, you
download it from git:
$ git clone git://git.eigenstate.org/ori/mc.git
$ cd mc
# Set the prefix to anything you want, but
# make sure that $prefix/bin is in $PATH
$ ./configure --prefix=/usr
# On BSD, use gmake
$ make
$ sudo make install
Plan 9 is also supported:
% hg clone https://bitbucket.org/oridb/mc
% cd mc
% mk
% mk install
On some systems, you can also install Myrddin through your package system.
Useful Supporting Tools
------------------------
There are a number of useful utilities for working with Myrddin that are
not shipped with the above.
### vim myr support
The mc repository comes with indent and syntax scripts for vim. These scripts
are fairly sparse, but they serve me well. To get them, you can take
https://git.eigenstate.org/ori/mc.git/tree/support/vim
And put it into your vim path.
I also suggest setting the indentation and shift widths for Myrddin files
with an autocommand. To do that, add the text below to your .vimrc:
" Indent .myr files with tabs
autocmd FileType myr
\ setlocal noet |
\ setlocal sw=8
### ctags
[Universal ctags](https://github.com/universal-ctags/ctags) supports Myrddin
out of the box.
### mleakdump
There are some rudimentary leak checking tools. Mleakdump is shipped with
Myrddin, and is able to interpret the trace files that
`std.startalloctrace("path")` creates. The output is a bit obtuse,
as it isn't symbolized, but it's easy to convert the addresses into function
names using gdb.
### acid
There are some support files shipped for the Plan 9 debugger. To get stack
traces on Plan 9, use:
acid -l mc/support/acid/myr your-binary