<s>
The	O
Boehm	O
–	O
Demers	O
–	O
Weiser	O
garbage	B-General_Concept
collector	I-General_Concept
,	O
often	O
simply	O
known	O
as	O
Boehm	B-Language
GC	I-Language
,	O
is	O
a	O
conservative	O
garbage	B-General_Concept
collector	I-General_Concept
for	O
C	B-Language
and	O
C++	B-Language
developed	O
by	O
Hans	O
Boehm	O
,	O
Alan	O
Demers	O
,	O
and	O
Mark	O
Weiser	O
.	O
</s>
<s>
Boehm	B-Language
GC	I-Language
is	O
free	B-Application
software	I-Application
distributed	O
under	O
a	O
permissive	B-License
free	I-License
software	I-License
licence	I-License
similar	O
to	O
the	O
X11	B-License
license	I-License
.	O
</s>
<s>
Boehm	B-Language
GC	I-Language
can	O
also	O
run	O
in	O
leak	B-Error_Name
detection	I-Error_Name
mode	O
in	O
which	O
memory	O
management	O
is	O
still	O
done	O
manually	O
,	O
but	O
the	O
Boehm	B-Language
GC	I-Language
can	O
check	O
if	O
it	O
is	O
done	O
properly	O
.	O
</s>
<s>
In	O
this	O
way	O
a	O
programmer	O
can	O
find	O
memory	B-Error_Name
leaks	I-Error_Name
and	O
double	O
deallocations	O
.	O
</s>
<s>
Boehm	B-Language
GC	I-Language
is	O
also	O
distributed	O
with	O
a	O
C	B-Language
string	I-Language
handling	I-Language
library	O
called	O
cords	O
.	O
</s>
<s>
This	O
is	O
similar	O
to	O
ropes	B-Data_Structure
in	O
C++	B-Language
(	O
trees	B-Application
of	O
constant	O
small	O
arrays	O
)	O
,	O
but	O
instead	O
of	O
using	O
reference	O
counting	O
for	O
proper	O
deallocation	O
,	O
it	O
relies	O
on	O
garbage	B-General_Concept
collection	I-General_Concept
to	O
free	O
objects	O
.	O
</s>
<s>
Cords	O
are	O
good	O
at	O
handling	O
very	O
large	O
texts	O
,	O
modifications	O
to	O
them	O
in	O
the	O
middle	O
,	O
slicing	O
,	O
concatenating	O
,	O
and	O
keeping	O
history	O
of	O
changes	O
(	O
undo/redo	O
functionality	O
)	O
.	O
</s>
<s>
The	O
garbage	B-General_Concept
collector	I-General_Concept
works	O
with	O
most	O
unmodified	O
C	B-Language
programs	I-Language
,	O
simply	O
by	O
replacing	O
with	O
calls	O
,	O
replacing	O
with	O
calls	O
,	O
and	O
removing	O
calls	O
.	O
</s>
<s>
The	O
code	O
piece	O
below	O
shows	O
how	O
one	O
can	O
use	O
Boehm	O
instead	O
of	O
traditional	O
malloc	B-Language
and	O
free	O
in	O
C	B-Language
.	O
</s>
<s>
The	O
Boehm	B-Language
GC	I-Language
is	O
used	O
by	O
many	O
projects	O
that	O
are	O
implemented	O
in	O
C	B-Language
or	O
C++	B-Language
like	O
Inkscape	B-Application
,	O
as	O
well	O
as	O
by	O
runtime	O
environments	O
for	O
a	O
number	O
of	O
other	O
languages	O
,	O
including	O
Crystal	B-Application
,	O
the	O
Codon	O
high	O
performance	O
python	O
compiler	O
,	O
the	O
GNU	B-Language
Compiler	I-Language
for	I-Language
Java	I-Language
runtime	O
environment	O
,	O
the	O
Portable.NET	B-Application
project	O
,	O
Embeddable	B-Language
Common	I-Language
Lisp	I-Language
,	O
GNU	B-Application
Guile	I-Application
,	O
the	O
Mono	B-Application
implementation	O
of	O
the	O
Microsoft	O
.NET	O
platform	O
(	O
also	O
using	O
precise	O
compacting	O
GC	O
since	O
version	O
2.8	O
)	O
,	O
GNUstep	B-Application
optionally	O
,	O
and	O
libgc-d	O
(	O
a	O
binding	O
to	O
libgc	B-Language
for	O
the	O
D	B-Application
programming	I-Application
language	I-Application
,	O
used	O
primarily	O
in	O
the	O
MCI	O
)	O
.	O
</s>
<s>
It	O
supports	O
numerous	O
operating	B-General_Concept
systems	I-General_Concept
,	O
including	O
many	O
Unix	B-Application
variants	O
(	O
such	O
as	O
macOS	B-Application
)	O
and	O
Microsoft	B-Application
Windows	I-Application
,	O
and	O
provides	O
a	O
number	O
of	O
advanced	O
features	O
including	O
incremental	O
collection	O
,	O
parallel	O
collection	O
and	O
a	O
variety	O
of	O
finalizer	B-Application
semantics	O
.	O
</s>
