Monday, February 11, 2013

Code refactoring - from Wikipedia, the free encyclopedia


Code refactoring

From Wikipedia, the free encyclopedia
Code refactoring is a "disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior",[1] undertaken in order to improve some of the nonfunctional attributes of the software. Advantages include improved code readability and reduced complexity to improve the maintainability of the source code, as well as a more expressive internal architecture or object model to improve extensibility.
By continuously improving the design of code, we make it easier and easier to work with. This is in sharp contrast to what typically happens: little refactoring and a great deal of attention paid to expediently adding new features. If you get into the hygienic habit of refactoring continuously, you'll find that it is easier to extend and maintain code.
—Joshua Kerievsky, Refactoring to Patterns[2]
Typically, refactoring is done by applying a series of standardised basic "micro-refactorings", each of which is a (usually) tiny change in a computer program's source code that either preserves the behaviour of the software or at least does not modify its conformance to functional requirements. Many development environments provide automated support for carrying out the mechanical aspects of these basic refactorings.

Contents

  [hide] 

[edit]Overview

Refactoring is usually motivated by noticing a code smell.[3] For example the method at hand may be very long, or it may be a near duplicate of another nearby method. Once recognized, such problems can be addressed by refactoring the source code, or transforming it into a new form that behaves the same as before but that no longer "smells". For a long routine, one or more smaller subroutines can be extracted; or for duplicate routines, the duplication can be removed and replaced with one shared function. Failure to perform refactoring can result in accumulating technical debt.
There are two general categories of benefits to the activity of refactoring.
  1. Maintainability. It is easier to fix bugs because the source code is easy to read and the intent of its author is easy to grasp.[4]This might be achieved by reducing large monolithic routines into a set of individually concise, well-named, single-purpose methods. It might be achieved by moving a method to a more appropriate class, or by removing misleading comments.
  2. Extensibility. It is easier to extend the capabilities of the application if it uses recognizable design patterns, and it provides some flexibility where none before may have existed.[2]
Before refactoring a section of code, a solid set of automatic unit tests is needed. The tests should demonstrate in a few seconds[citation needed] that the behavior of the module is correct. The process is then an iterative cycle of making a small program transformation, testing it to ensure correctness, and making another small transformation. If at any point a test fails, the last small change is undone and repeated in a different way. Through many small steps the program moves from where it was to where you want it to be. Proponents of extreme programming and other agile methodologies describe this activity as an integral part of thesoftware development cycle.

[edit]List of refactoring techniques

Here are some examples of micro-refactorings; some of these may only apply to certain languages or language types. A longer list can be found in Fowler's Refactoring book[3] and on Fowler's Refactoring Website.[5] Many development environments provide automated support for these micro-refactorings. For instance, a programmer could click on the name of a variable and then select the "Encapsulate field" refactoring from a context menu. The IDE would then prompt for additional details, typically with sensible defaults and a preview of the code changes. After confirmation by the programmer it would carry out the required changes throughout the code.
  • Techniques that allow for more abstraction
    • Encapsulate Field – force code to access the field with getter and setter methods
    • Generalize Type – create more general types to allow for more code sharing
    • Replace type-checking code with State/Strategy[6]
    • Replace conditional with polymorphism [7]
  • Techniques for breaking code apart into more logical pieces
    • Componentization breaks code down into reusable semantic units which present clear, well-defined, simple-to-use interfaces.
    • Extract Class moves part of the code from an existing class into a new class.
    • Extract Method, to turn part of a larger method into a new method. By breaking down code in smaller pieces, it is more easily understandable. This is also applicable to functions.
  • Techniques for improving names and location of code

[edit]Hardware refactoring

While the term refactoring originally referred exclusively to refactoring of software code, in recent years code written in hardware description languages (HDLs) has also been refactored. The term hardware refactoring is used as a shorthand term for refactoring of code in hardware description languages. Since HDLs are not considered to be programming languages by most hardware engineers,[8] hardware refactoring is to be considered a separate field from traditional code refactoring.
Automated refactoring of analog hardware descriptions (in VHDL-AMS) has been proposed by Zeng and Huss.[9] In their approach, refactoring preserves the simulated behavior of a hardware design. The non-functional measurement that improves is that refactored code can be processed by standard synthesis tools, while the original code cannot. Refactoring of digital HDLs, albeit manual refactoring, has also been investigated by Synopsys fellow Mike Keating.[10][11] His target is to make complex systems easier to understand, which increases the designers' productivity.
In the summer of 2008, there was an intense discussion about refactoring of VHDL code on the news://comp.lang.vhdlnewsgroup.[12] The discussion revolved around a specific manual refactoring performed by one engineer, and the question to whether or not automated tools for such refactoring exist.
As of late 2009, Sigasi is offering automated tool support for VHDL refactoring.[13]
AMIQ DVT, an IDE for hardware design and verification, provides refactoring capabilities for e (verification language), SystemVerilog,Verilog and VHDL.[14]

[edit]History

In the past refactoring was avoided in development processes. One example of this is that CVS (created in 1984) does not version the moving or renaming of files and directories.
Although refactoring code has been done informally for years, William Griswold's 1991 Ph.D. dissertation[15] is one of the first major academic works on refactoring functional and procedural programs, followed by William Opdyke's 1992 dissertation[16] on the refactoring of object-oriented programs,[17] although all the theory and machinery have long been available as program transformationsystems. All of these resources provide a catalog of common methods for refactoring; a refactoring method has a description of how to apply the method and indicators[disambiguation needed] for when you should (or should not) apply the method.
Martin Fowler's book Refactoring: Improving the Design of Existing Code[3] is the canonical reference.
The first known use of the term "refactoring" in the published literature was in a September, 1990 article by William F. Opdyke and Ralph E. Johnson.[18] Griswold's Ph.D. thesis,[15] Opdyke's Ph.D. thesis,[16] published in 1992, also used this term.[17]
The term "factoring" has been used in the Forth community since at least the early 1980s. Chapter Six of Leo Brodie's book Thinking Forth (1984) is dedicated to the subject.
In extreme programming, the Extract Method refactoring technique has essentially the same meaning as factoring in Forth; to break down a "word" (or function) into smaller, more easily maintained functions.
Refactorings can also be reconstructed[19] posthoc to produce concise descriptions of complex software changes recorded in software repositories like CVS or SVN.


Code refactoring - Wikipedia, the free encyclopedia

'via Blog this'

Productive Skype Team Collaboration

...

Skype – if you’d told someone you’d be able to have a meeting with five people in different countries 20 years ago it would have seemed like an absurd notion (particularly for if you mentioned that it was free). Skype is now common place and has become the standard for voice calls over the internet (as well as chat, video conferencing and file transfers). It’s free to use across a number of devices, including iPhones, Nokia, Symbian and just about every operating system known to man. More than 520 million people worldwide use Skype – if you haven’t joined the party yet, you should download it and create an account today.
If you’re an existing user and chat or video conferencing is part of  your business, you might want to think about how to make your Skype usage more productive; Firstly you want to make sure that team members are not distracted by messages from friends. So consider a policy where all team members have separate Skype accounts for work, and the rule to only use this account with work contacts. Also if a text chat discussion starts going past a few sentences at a time, it’s usually faster to switch to a quick phone call and discuss thing the old fashioned way. Note: we are working on some specific productivity features for Skype which will give you reports of how long you chatted on Skype each week and with which people.
How we use Skype: Training, quick questions to other team members, all of our phone calls (including to clients), video conferencing, daily meetings for our development team, simple screen sharing.
Screen sharing technology -  Skype allows you to share your screen to another user, and Jing allows to record your screen – If you need something extra, there are some great screen sharing technologies around which are perfect for technical support or sharing information that needs a visual demonstration on a person’s computer screen. There are several companies that provide this technology, the ones we recommend to try are: Yuuguu , Team Viewer and Dimdim.
...

The 8 best collaboration tools for virtual teams | Time Doctor - Time Management Software

'via Blog this'

Friday, February 8, 2013

17 Year Old Speaks Emotionally at DesignCon, Credits his Parents and Teachers for Keeping him Motivated


A 17 Year Old Speaks Emotionally at DesignCon, Credits his Parents and Teachers forKeeping him Motivated

By SiliconIndia  |   Thursday, 07 February 2013, 03:09 Hrs
sac

Bangalore: Shachi Nandan Kakkar, a national level VLSI industry blogger recently gave his views on  “Engineering The Next Generation”  at the DesignCon conference for chip design, semiconductor and the electronics engineering community. The conference was held in Santa Clara - CA from January 28 – 31 2013 at the Santa Clara convention center.


According to Kakkar, kids are naturally curious and want to figure out how things work. It is this tendency of theirs to break apart things to understand their functioning, that should be encouraged.


Kakkar chuckled that his dad is an engineer and that he motivated him to look at engineering as a cool career option with scope to have lots of fun designing products which better the quality of our lives.  His dad, Sunil Kakkar, who founded a chip design and verification company - SKAK Inc., serves on the technical program committee of DesignCon.  When asked who his hero is in the engineering world, Shachi mentioned that his dad is his hero in the engineering world since he simplified his career choice by giving him an insight into the domain of engineers and what they can achieve.


Shachi also feels that engineering is involved in every aspect of life.   His mom, Sarini Kakkar, designs costume jewellery for Sarini’s creations and it dawned upon him that she also architects and engineers every piece of jewellery to bring out the inner beauty of a woman.  The relative dimensions, the colors, the stones are meticulously selected just as an architect designs a building.  So, engineering is involved in everything that we do.    Once on the expo  floor, the lighted booths with lots of product demonstrations going on, attracted Kakkar towards them, but not so much for the technical content as for the goodie bags which they were handing out like lighted pens, candies and free gourmet Pete’s coffee and signature desserts. He made lots of friends with senior executives of various companies.  He realized that engineers do not code the entire time but have their relaxing moments too.  He mingled with the chip veterans of the industry and they were eager to get his perspective.   


When Kakkar came back home that night, he took a picture of his booty that he had managed to grab at the conference, but was happy that engineers like to have a good time and socialize.  Shachi also made a new friend that day, Mr. Chiphead.


A 17 Year Old Speaks Emotionally at DesignCon, Credits his Parents and Teachers forKeeping him Motivated

'via Blog this'

Thursday, February 7, 2013

DVClub Newsletter: January 2013, hardware design verification interest group, multiple locations


Is this email not displaying correctly?
View it in your browser.
DVClub Newsletter
In this Issue:
      Upcoming Events
          Silicon Valley - Dean Drako, CEO & President, IC Manage - February 14, 2013
      Past Events
          Delhi - DV Experts in the Delhi/NCR Region
          Austin - Zihno Jusufovic, Processor Verification, AMD
      DVClub Sponsors
Upcoming Events


IP Reuse Impact on DVM Across the Enterprise

Dean Drako, CEO & President, IC Manage

When:
February 14, 2013
11:30 AM - 2:30 PM (PST)

Where:
Dave and Busters
940 Great Mall Dr.
Milpitas, CA 95035


Abstract:
Designing hardware is becoming more like designing software in that it is increasingly a process of 'continuous design'. To achieve continuous design, businesses are maximizing the reuse of IP modules across designs and design derivatives.

As such, companies must address the increasingly complex dependency management associated with the reuse of their IP blocks and subsystems, which evolve dynamically and incrementally as the IP is distributed and reused. Dependency management is needed for communication between IP developers, consumers, verification teams and management through the entire space of IP derivatives across the enterprise.

What is the most efficient process for ensuring design verification information flow and real-time sharing and access to this information? What information must be captured, encapsulated with the IP and shared - such as bug rollouts and propagation of fixes? What internal processes are needed to support such an infrastructure?

Speaker Bio:
Dean founded IC Manage in 2003, a company that he has helped expand to become the IC/SoC design and IP management technology leader. Dean was also founder, President and CEO of Barracuda Networks from 2003 to 2012, where he built and expanded Barracuda from a spam and virus firewall provider to a broad line enterprise technology company with more than 150,000 customers. Dean currently serves on Barracuda's Board of Directors.

Dean was also the founder of Boldfish, a leading provider of enterprise messaging solutions that was acquired by Siebel Systems in 2003. Before Boldfish, Dean was founder, president and CEO of Design Acceleration Inc. (DAI), maker of superior design analysis and verification tools, which was acquired by Cadence Design Systems. Dean has served as an entrepreneur in residence for SoftBank Venture Capital as well as vice president of product engineering at the 3DO Company. Dean holds a B.S. in electrical engineering from the University of Michigan, Ann Arbor and M.S. in electrical engineering from the University of California, Berkeley. In 2007, Dean was named "Technology Entrepreneur of the Year for Northern California" by Ernst & Young.

Register for the Event

 

Past Events


Delhi- Building A DV Ecosystem in Delhi NCR

DV Experts in the Delhi/NCR Region

Abstract:
Agnisys and Cadence brought DV Experts in the Delhi NCR together on December 19, 2012 to discuss the latest DV updates from around the world. DVClub in Delhi had a small start two years ago, but has since gained traction in its events. Most members work in verification companies including ST, Freescale, and HCL, to name a few. Also in attendance were entrepreneurs, students, managers, and even design engineers. This third DVClub event in Delhi gave members a chance to share ideas and solutions, creating an interactive environment.

Speakers: (and presentation links)
1.    Sandeep Jana, ST - TLM Based Software Control of UVCs
2.    Nitn Goel, Freescale - Accelerating Mixed Signal Verification Using System Verilog "Real"
3.    Ravi P Gupta, ST - Accelerated Code Coverage on HW Emulator
4.    Annu Gupta, ST - HDL Design Development Tracking Using Excel
5.    Mehul Kumar, Freescale - UVM Testbench Linter
6.    Chhavi Patni, ST - Verifying Performance of a (HDL) Design Block

Learn More About DVClub Delhi
 

Austin- Jaguar x86 Core Functional Verification

Zihno Jusufovic, Processor Verification, AMD

Abstract:
Jaguar is based on Bobcat first AMD low power core but there are significant design changes. The presentation contains a short summary of Jaguar architecture followed by a discussion of the unit and top level testbenches, the verification environment, and some of the challenges encounter during the functional verification of the core.

Speaker Bio:
Zihno Jusufovic is the technical lead on the Jaguar x86 core testbench. He has over 10 years of experience in verification of x86 processors, RISC processors and SOCs. Zihno earned his Master's Degree in Electrical Engineering from The University of Texas at Arlington.

Download the Presentation

 

Sponsors

A special thank you to our sponsors:
                   

              Cadence      
 
follow on Twitter  | forward to a friend 


If you need assistance, please contact us at  admin@dvclub.org
Design Verification Club 1250 S. Capitol of Texas Hwy Building 1, Suite 520 Austin, TX 78746

Copyright © 2013 Design Verification Club, All rights reserved.











Design Verification Club · 1250 S. Capitol of Texas Hwy · Building 1, Suite 520 · Austin, TX 78746

Tuesday, February 5, 2013

SystemC Verification: scv-1.0p2-sysc2.2 / src / scv / Makefile.in

Sorry, I know this is not an exciting post, it is just so I can find the info easily later...   :-)

scv-1.0p2-sysc2.2 / src / scv / Makefile.in 

# Makefile.in generated by automake 1.6.3 from Makefile.am.
# @configure_input@

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@

EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@

SHELL = /bin/sh
AMTAR = @AMTAR@
AWK = @AWK@
CC = @CC@
CFLAGS_DEBUG = @CFLAGS_DEBUG@
CFLAGS_OPT = @CFLAGS_OPT@
CXX = @CXX@
CXXFLAGS_DEBUG = @CXXFLAGS_DEBUG@
CXXFLAGS_OPT = @CXXFLAGS_OPT@
DBGFLAGS = @DBGFLAGS@
DEPDIR = @DEPDIR@
EXPORT_DYNAMIC = @EXPORT_DYNAMIC@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
KIT = @KIT@
LIBIBERTY = @LIBIBERTY@
MAJ = @MAJ@
MIN = @MIN@
OPTFLAGS = @OPTFLAGS@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
SHLIB_EXT = @SHLIB_EXT@
STRIP = @STRIP@
SYSC_INC_PREFIX = @SYSC_INC_PREFIX@
SYSC_LIB_PREFIX = @SYSC_LIB_PREFIX@
SYSC_SRC_PREFIX = @SYSC_SRC_PREFIX@
UNDEF_SYMBOLS = @UNDEF_SYMBOLS@
VERSION = @VERSION@
actual_install = @actual_install@
am__include = @am__include@
am__quote = @am__quote@
buildBin = @buildBin@
buildData = @buildData@
buildInc = @buildInc@
buildLib = @buildLib@
cxxDepFlags = @cxxDepFlags@
dummy_install = @dummy_install@
extraExamples = @extraExamples@
install_sh = @install_sh@
overwrite_files = @overwrite_files@
pdfDocSrcDir = @pdfDocSrcDir@
pure_ld_opts = @pure_ld_opts@
purecache = @purecache@
relocate = @relocate@
scvLinkerOpts = @scvLinkerOpts@
AUTOMAKE_OPTIONS = foreign
lib_LIBRARIES = libscv.a

libscv_cxx_files = \
 scv_constraint.cpp \
 scv_constraint_range.cpp \
 scv_debug.cpp \
 scv_expression.cpp \
 scv_init_seed.cpp \
 scv_introspection.cpp \
 scv_random.cpp \
 scv_report.cpp \
 scv_tr.cpp \
 scv_tr_text.cpp \
 scv_util.cpp


libscv_a_SOURCES = ${libscv_cxx_files}
EXTRA_DIST = Makefile.extra $(my_includes) 

my_includes = ${my_scv_includes}

# my_includes = ${my_scv_includes}
my_scv_includes = \
_scv_associative_array.h \
_scv_ext_callbacks.h \
_scv_data_structure.h \
_scv_ext_comp.h \
_scv_ext_rw.h \
_scv_ext_type.h \
_scv_ext_util.h \
_scv_ext_rand.h \
_scv_introspection.h \
_scv_list_iter.h \
_scv_randomization.h \
_scv_smart_ptr.h \
scv_bag.h \
scv_constraint.h \
scv_constraint_range.h \
scv_debug.h \
scv_expression.h \
scv_introspection.h \
scv_messages.h \
scv_object_if.h \
scv_random.h \
scv_report.h \
scv_shared_ptr.h \
scv_sparse_array.h \
scv_tr.h \
scv_util.h \
scv_kit_date.h


INCLUDES = \
 -I${buildInc} \
 -I${top_srcdir}/src \
 -I${top_srcdir}/src/cudd/2.3.0/cudd \
 -I${top_srcdir}/src/cudd/2.3.0/obj \
 -I${top_srcdir}/src/cudd/2.3.0/util \
 -I${top_srcdir}/src/cudd/2.3.0/mtr \
 -I${top_srcdir}/src/cudd/2.3.0/st \
 -I${SYSC_INC_PREFIX} \
 -DSCV_VERSION=\"$(VERSION)\"


BDD_LIBS = \
 ${buildLib}/libobj.a \
 ${buildLib}/libcudd.a \
 ${buildLib}/libutil.a \
 ${buildLib}/libmtr.a \
 ${buildLib}/libst.a


copyFiles = ${top_builddir}/scripts/copyFiles.sh

OBJFILES = ${addsuffix .o, ${basename ${libscv_a_SOURCES}}}

SYSC_LIBRARY = ${SYSC_LIB_PREFIX}/libsystemc.a
subdir = src/scv
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
LIBRARIES = $(lib_LIBRARIES)

libscv_a_AR = $(AR) cru
libscv_a_LIBADD =
am__objects_1 = scv_constraint.$(OBJEXT) scv_constraint_range.$(OBJEXT) \
 scv_debug.$(OBJEXT) scv_expression.$(OBJEXT) \
 scv_init_seed.$(OBJEXT) scv_introspection.$(OBJEXT) \
 scv_random.$(OBJEXT) scv_report.$(OBJEXT) scv_tr.$(OBJEXT) \
 scv_tr_text.$(OBJEXT) scv_util.$(OBJEXT)
am_libscv_a_OBJECTS = $(am__objects_1)
libscv_a_OBJECTS = $(am_libscv_a_OBJECTS)

DEFS = @DEFS@
DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/scv_constraint.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_constraint_range.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_debug.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_expression.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_init_seed.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_introspection.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_random.Po ./$(DEPDIR)/scv_report.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_tr.Po ./$(DEPDIR)/scv_tr_text.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/scv_util.Po
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
 -o $@
CXXFLAGS = @CXXFLAGS@
DIST_SOURCES = $(libscv_a_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(libscv_a_SOURCES)

all: all-am

.SUFFIXES:
.SUFFIXES: .cpp .o .obj
$(srcdir)/Makefile.in:  Makefile.am $(top_srcdir)/src/scv/Makefile.extra $(top_srcdir)/configure.in $(ACLOCAL_M4)
 cd $(top_srcdir) && \
   $(AUTOMAKE) --foreign  src/scv/Makefile
Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)

AR = ar
libLIBRARIES_INSTALL = $(INSTALL_DATA)
install-libLIBRARIES: $(lib_LIBRARIES)
 @$(NORMAL_INSTALL)
 $(mkinstalldirs) $(DESTDIR)$(libdir)
 @list='$(lib_LIBRARIES)'; for p in $$list; do \
   if test -f $$p; then \
     f="`echo $$p | sed -e 's|^.*/||'`"; \
     echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \
     $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \
   else :; fi; \
 done
 @$(POST_INSTALL)
 @list='$(lib_LIBRARIES)'; for p in $$list; do \
   if test -f $$p; then \
     p="`echo $$p | sed -e 's|^.*/||'`"; \
     echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
     $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
   else :; fi; \
 done

uninstall-libLIBRARIES:
 @$(NORMAL_UNINSTALL)
 @list='$(lib_LIBRARIES)'; for p in $$list; do \
   p="`echo $$p | sed -e 's|^.*/||'`"; \
   echo " rm -f $(DESTDIR)$(libdir)/$$p"; \
   rm -f $(DESTDIR)$(libdir)/$$p; \
 done

clean-libLIBRARIES:
 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
libscv.a: $(libscv_a_OBJECTS) $(libscv_a_DEPENDENCIES) 
 -rm -f libscv.a
 $(libscv_a_AR) libscv.a $(libscv_a_OBJECTS) $(libscv_a_LIBADD)
 $(RANLIB) libscv.a

mostlyclean-compile:
 -rm -f *.$(OBJEXT) core *.core

distclean-compile:
 -rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_constraint.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_constraint_range.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_debug.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_expression.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_init_seed.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_introspection.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_random.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_report.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_tr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_tr_text.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scv_util.Po@am__quote@

distclean-depend:
 -rm -rf ./$(DEPDIR)

.cpp.o:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<

.cpp.obj:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 $(CXXCOMPILE) -c -o $@ `cygpath -w $<`
CXXDEPMODE = @CXXDEPMODE@
uninstall-info-am:

ETAGS = etags
ETAGSFLAGS =

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
 unique=`for i in $$list; do \
     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   done | \
   $(AWK) '    { files[$$0] = 1; } \
        END { for (i in files) print i; }'`; \
 mkid -fID $$unique

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
  $(TAGS_FILES) $(LISP)
 tags=; \
 here=`pwd`; \
 list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
 unique=`for i in $$list; do \
     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
   done | \
   $(AWK) '    { files[$$0] = 1; } \
        END { for (i in files) print i; }'`; \
 test -z "$(ETAGS_ARGS)$$tags$$unique" \
   || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
      $$tags $$unique

GTAGS:
 here=`$(am__cd) $(top_builddir) && pwd` \
   && cd $(top_srcdir) \
   && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)

distdir: $(DISTFILES)
 @list='$(DISTFILES)'; for file in $$list; do \
   if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
   dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
   if test "$$dir" != "$$file" && test "$$dir" != "."; then \
     dir="/$$dir"; \
     $(mkinstalldirs) "$(distdir)$$dir"; \
   else \
     dir=''; \
   fi; \
   if test -d $$d/$$file; then \
     if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
       cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
     fi; \
     cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
   else \
     test -f $(distdir)/$$file \
     || cp -p $$d/$$file $(distdir)/$$file \
     || exit 1; \
   fi; \
 done
check-am: all-am
check: check-am
all-am: Makefile $(LIBRARIES)

installdirs:
 $(mkinstalldirs) $(DESTDIR)$(libdir)
install-exec: install-exec-am
install-data: install-data-am

install-am: all-am
 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
   INSTALL_STRIP_FLAG=-s \
   `test -z '$(STRIP)' || \
     echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
 -rm -f Makefile $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
 @echo "This command is intended for maintainers to use"
 @echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-libLIBRARIES mostlyclean-am

distclean: distclean-am

distclean-am: clean-am distclean-compile distclean-depend \
 distclean-generic distclean-tags

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am:

install-exec-am: install-libLIBRARIES

install-info: install-info-am

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-am

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic

uninstall-am: uninstall-info-am uninstall-libLIBRARIES

.PHONY: GTAGS all all-am check check-am clean clean-generic \
 clean-libLIBRARIES distclean distclean-compile distclean-depend \
 distclean-generic distclean-tags distdir dvi dvi-am info \
 info-am install install-am install-data install-data-am \
 install-exec install-exec-am install-info install-info-am \
 install-libLIBRARIES install-man install-strip installcheck \
 installcheck-am installdirs maintainer-clean \
 maintainer-clean-generic mostlyclean mostlyclean-compile \
 mostlyclean-generic tags uninstall uninstall-am \
 uninstall-info-am uninstall-libLIBRARIES


libscv${SHLIB_EXT} : ${OBJFILES} ${BDD_LIBS}
 ${CXX} ${scvLinkerOpts} -o libscv${SHLIB_EXT} \
   $(OBJFILES) ${BDD_LIBS} ${LIBS}

all : all-am libscv${SHLIB_EXT}
 ${copyFiles} -s ${srcdir} ${buildInc}/scv ${my_includes}
 ${copyFiles} -s ${srcdir} . ${my_includes}
 ${copyFiles} -s . ${buildLib} ${lib_LIBRARIES} libscv${SHLIB_EXT}

clean-worker :
 -rm -rf libscv${SHLIB_EXT}
 SRC=`cd ${srcdir};pwd`; BLD=`pwd`; \
 if test "$$SRC" != "$$BLD"; then rm -rf ${my_includes}; fi

clean : clean-am clean-worker

distclean : distclean-am clean-worker

install : libscv${SHLIB_EXT}
 ${copyFiles} . ${includedir}/scv ${my_includes}
 ${copyFiles} . ${libdir} libscv${SHLIB_EXT}

uninstall : uninstall-am
 -rm -rf ${libdir}/libscv${SHLIB_EXT}
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

https://raw.github.com/systemc/scv-1.0p2-sysc2.2/master/src/scv/Makefile.in

'via Blog this'

Monday, February 4, 2013

Which Gmail filter has starred this message?, Superstars, &c

"Which Gmail filter has starred this message"
or the broader question,
"Which of my Gmail filters have been used to alter the state of this message"
When searching for an answer to the above question (all of which seemed unsatisfactory, and cause me to realize that once again I am on the bleeding edge ("You Can Tell The Pioneers By The Arrows In Their Backs") in my use of a large number of Gmail filters, I did come upon this answer, which I think may help me out.  At least if I use different star types when starring mail to highlight it, I will then be able to see which rule was in effect to do so.  Is it better than assigning a unique label for a given rule every time a rule stars a messages?  Dunno, that is the other workaround I thought of.  (Or to give up on the auto-starring and hope Priority Inbox is good enough for all my interest, it is pretty good already).
I am still interested in the "real" answer to the above question, rather than editing my mail-starring rules, so if you know it, please advise!!!


Sunday, July 13, 2008


Gmail Superstars

One of the 13 features added to Gmail Labs in May is Superstars, an extension of Gmail's starring system. Instead of using a single star to flag all the messages, you can choose between 12 icons.


After enabling Superstars in Gmail Labs and clicking on "Save changes", go to thesettings and select the icons you want to use. The exclamation mark is useful to flag important messages, quotes could show that a message needs a reply, while the info icon could be used for messages that contain valuable information.


To star messages faster, enable keyboard shortcuts in the settings. "The superstars will rotate when you press the 's' keyboard shortcut or when you click successively," explains Google. "Rotating through the superstars only works when you click (or hit 's') successively. If you pause for a second, then the next click will turn off the superstar. It's designed this way so that if you never click successively, then you'll just get the original on/off toggle behavior."

If you want to find the messages that have a certain kind of star, use one of the following queries:
has:yellow-star (or l:^ss_sy)
has:blue-star (or l:^ss_sb)
has:red-star (or l:^ss_sr)
has:orange-star (or l:^ss_so)
has:green-star (or l:^ss_sg)
has:purple-star (or l:^ss_sp)
has:red-bang (or l:^ss_cr)
has:yellow-bang (or l:^ss_cy)
has:blue-info (or l:^ss_cb)
has:orange-guillemet (or l:^ss_co)
has:green-check (or l:^ss_cg)
has:purple-question (or l:^ss_cp)

You can enable the Quick Links labs feature to save some of these queries so that they are always accessible with a single click. Just search for has:blue-star or any other value and click on "Add Quick Link".


Gmail Superstars

'via Blog this'