Difference between revisions of "Coding"

From esoterum.org
Jump to: navigation, search
(SystemC)
(SystemC)
Line 37: Line 37:
  
 
=== SystemC ===
 
=== SystemC ===
 +
*Installation problems:
 +
:-SystemC compiles with Fedora 9 version of gcc, but it's necessary to add the following include statements to <code>systemc-2.2.0/src/sysc/utils/sc_utils_ids.cpp</code> :
 +
::<code>#include "string.h"</code>
 +
::<code>#include "cstdlib"</code>
 +
 
*[http://www.tellurian.com.au/whitepapers/multiplegcc.php Installing older gcc in Fedora 9], gcc 4.x was not compatible witn SystemC release, the configuration error says gcc-3.2 is compatible, but I could only get yum to work with compat-gcc-34
 
*[http://www.tellurian.com.au/whitepapers/multiplegcc.php Installing older gcc in Fedora 9], gcc 4.x was not compatible witn SystemC release, the configuration error says gcc-3.2 is compatible, but I could only get yum to work with compat-gcc-34
 +
 
*[http://www.forteds.com/SystemC/training/LaunchSystemC.asp?y=ftc&userid=7094&bkmark=tocmain SystemC tutorial from Forte Design]
 
*[http://www.forteds.com/SystemC/training/LaunchSystemC.asp?y=ftc&userid=7094&bkmark=tocmain SystemC tutorial from Forte Design]
 +
 
*Black, David C and Donovan, Jack. [https://login.ezproxy1.lib.asu.edu/login?url=http://site.ebrary.com/lib/asulib/Doc?id=10101569 SystemC: from the ground up]. ebrary, Inc. 2004. Online through ASU library
 
*Black, David C and Donovan, Jack. [https://login.ezproxy1.lib.asu.edu/login?url=http://site.ebrary.com/lib/asulib/Doc?id=10101569 SystemC: from the ground up]. ebrary, Inc. 2004. Online through ASU library
 +
 
*Müller, Wolfgang; Rosenstiel, Wolfgang; Ruf, Jürgen. [https://login.ezproxy1.lib.asu.edu/login?url=http://site.ebrary.com/lib/asulib/Doc?id=10078611 SystemC: methodologies and applications ]. ebrary, Inc. 2003. Online through ASU library
 
*Müller, Wolfgang; Rosenstiel, Wolfgang; Ruf, Jürgen. [https://login.ezproxy1.lib.asu.edu/login?url=http://site.ebrary.com/lib/asulib/Doc?id=10078611 SystemC: methodologies and applications ]. ebrary, Inc. 2003. Online through ASU library
 +
 
*[http://www.asic-world.com/systemc/index.html SystemC Tutorial, ASIC-World]
 
*[http://www.asic-world.com/systemc/index.html SystemC Tutorial, ASIC-World]
 +
 
*[http://en.wikipedia.org/wiki/SystemC SystemC on Wikipedia]
 
*[http://en.wikipedia.org/wiki/SystemC SystemC on Wikipedia]
 +
 
*[http://panoramis.free.fr/search.systemc.org/ SystemC.org search resources]
 
*[http://panoramis.free.fr/search.systemc.org/ SystemC.org search resources]
  

Revision as of 18:33, 4 February 2010

SVN

GNU

Programming

IDE

Eclipse

TeXnicCenter

  • In order to embed Type I fonts and use letter format, these switches were added in [Build]->[Define Output Profiles]->[Postprocessor]->[DviPs], reference, embedding fonts reference:
--Pdownload35 -P cmz -t letter

Java

C

snippits

  • Cstring to int: int n = atoi(StrInt);
  • Return cursor to beginning of same line: printf("%d\r",number);

SystemC

  • Installation problems:
-SystemC compiles with Fedora 9 version of gcc, but it's necessary to add the following include statements to systemc-2.2.0/src/sysc/utils/sc_utils_ids.cpp :
#include "string.h"
#include "cstdlib"
  • Installing older gcc in Fedora 9, gcc 4.x was not compatible witn SystemC release, the configuration error says gcc-3.2 is compatible, but I could only get yum to work with compat-gcc-34

Assembly

Scripting

Bash

DOS

  • XCOPY *.jpg C:\FOLDER\ /S Search subfolders for *.jpg and copy files to C:\FOLDER\

Mark-up Languages

Dot

LaTeX

Replacing commercial fonts (which don't get embedded into the pdf with open source fonts:

# We go for replacing the wrong commercial font names with URW names, we also
# adapt some similar fonts names on the fly (extend for further font names): 

cat original_graphics.eps | sed 's+Times-Bold+NimbusSanL-Bold+g' |\
sed 's+Times-Roman+NimbusSanL-Regu+g' |\
sed 's+Times+NimbusSanL-Regu+g' |\
sed 's+Helvetica-BoldOblique+NimbusSanL-BoldItal+g' |\
sed 's+Helvetica-Oblique+NimbusSanL-ReguItal+g' |\
sed 's+Helvetica-Bold+NimbusSanL-Bold+g' |\
sed 's+Helvetica-Bold-iso+NimbusSanL-Bold+g' |\
sed 's+Helvetica+NimbusSanL-Regu+g' |\
sed 's+Helvetica-iso+NimbusSanL-Regu+g' |\
sed 's+Symbol+StandardSymL+g' > new_graphics.eps

HTML

Post Script

Modeling

AMPL (Linear Programming)

VHDL

Scripting

Regular Expressions

  • (^([^ ^\t^\n^/]+ +)+(.*) *\(.*\)[^\{]*\{[^\n]*\n) Finds a function declaration (eclipse find)
  • <START>$1 trace\(" @ $3\\n"\); //MAB 22 SEP 08: Add trace print statements
<STOP> Use this to replace the function declaration adding a trace statement identifying the function (normally "trace" should be replaced with printf), in eclipse, the return character apparently needs to be copied and pasted into the replace field, \n does not seem to work)

MATLAB

CGI

PHP

Interfaces