merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 14 Sep 2009 21:21:08 +0300
changeset 198 e9f649ad236b
parent 197 89a7852aa71b (diff)
parent 189 a433d6009641 (current diff)
child 201 cd3df5b56744
child 202 95ade0843007
merged
stat.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/embedded.rst	Mon Sep 14 21:21:08 2009 +0300
@@ -0,0 +1,5 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Embedded OS.
+
+bertos/contiki/tnkernel/nut/rtems/threadx/mantis/rtt/smx/scmrtos/xmkrtos/freertos/tinyos
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fs.rst	Mon Sep 14 21:21:08 2009 +0300
@@ -0,0 +1,12 @@
+-*- mode:outline; coding: utf-8 -*-
+
+* Make label on FAT32 volume.
+
+The volume name can be up to 11 characters long.
+
+  $ sudo mlabel -i /dev/<device> ::my-label
+
+or when create FAT32 file system:
+
+  $ sudo mkdosfs -n <vol-name> /dev/<device>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc.rst	Mon Sep 14 21:21:08 2009 +0300
@@ -0,0 +1,38 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Remove dead code.
+
+  STRIP_DEAD_CODE = -Wl,-static -fvtable-gc -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s
+
+  -Wl,-static
+                Link against static libraries. Required for dead-code
+                elimination.
+
+  -fvtable-gc
+                C++ virtual method table instrumented with garbage collection
+                information for the linker.
+
+  -fdata-sections
+                Keeps data in separate data sections, so they can be discarded
+                if unused.
+
+  -ffunction-sections
+                Keeps funcitons in separate data sections, so they can be
+                discarded if unused.
+
+  -Wl,--gc-sections
+                Tell the linker to garbage collect and discard unused
+                sections.
+
+  -s
+                Strip the debug information, so as to make the code as small
+                as possible. (I presume that you'd want to do this in a
+                dead-code removal build.)
+
+* Map file.
+
+  $ ld -Map=file.map <opts> <files>
+
+or
+
+  $ gcc -Wl,-Map=file.map <opts> <files>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/html.rst	Mon Sep 14 21:21:08 2009 +0300
@@ -0,0 +1,12 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Page encoding.
+
+Place in HEAD tag (CHARSET is one among of defined by
+http://www.iana.org/assignments/character-sets):
+
+  <meta http-equiv="Content-Type" content="text/html; charset=CHARSET">
+
+See
+
+  http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2
--- a/stat.rst	Thu Sep 03 23:42:53 2009 +0300
+++ b/stat.rst	Mon Sep 14 21:21:08 2009 +0300
@@ -29,6 +29,16 @@
   http://developers.sun.com/solaris/articles/prstat.html
                 Topping top in Solaris 8 with prstat.
 
+*** Interactive.
+
+  $ perfmeter
+
+*** Static.
+
+  $ prstat
+
+  $ mpstat <num> <seconds>
+
 * Memory consumption.
 
 ** Linux.
@@ -64,6 +74,14 @@
 
   $ vmstat
 
+** Solaris.
+
+  $ sar -g
+
+  $ vmstat
+
+  $ prstat -s size
+
 ** Windows.
 
   cmd> taskmgr