Motherboard Forums


Reply
Thread Tools Display Modes

Statechart tool to generate C

 
 





















Cesar Rabak
Guest
Posts: n/a

 
      10-15-2009, 10:27 PM


nobody escreveu:
> Cesar Rabak wrote:
>> Rich Webb escreveu:
>>
>>> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
>>> <> wrote:
>>>
>>>> I'm looking for a Statechart (Harel) tool that supports C code
>>>> generation, and is free (not trial copies). Any suggestions?
>>>
>>>
>>> Rule #3: Always check http://sourceforge.net
>>>
>>> Searching on "state machine" returns several results, including
>>> http://smc.sourceforge.net/
>>>

>> It seems SMC does not generate Harel (hierarchical) state charts.
>>

>
> In my experience (several years of professional OO work), if you need
> hierarchical state charts, your class model is incorrect.
>
> http://knol.google.com/k/leon-starr/...hnjef6cmm97l/4


I think you experience does not apply here. It is possible to do the
design using only state machines and turning them in code without need
to resort to OO (be it analysis or design). OTOH, since Harel
(hierarchical) cope well with the expansion of states that "flat" state
machines have when working in real life projects.

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
 
Reply With Quote
 
Cesar Rabak
Guest
Posts: n/a

 
      10-16-2009, 03:01 PM
vinnie escreveu:
>> nobody escreveu:
>>> In my experience (several years of professional OO work), if you need
>>> hierarchical state charts, your class model is incorrect.
>>>
>>>

> http://knol.google.com/k/leon-starr/...hnjef6cmm97l/4
>
>> I think you experience does not apply here. It is possible to do the
>> design using only state machines and turning them in code without need
>> to resort to OO (be it analysis or design). OTOH, since Harel
>> (hierarchical) cope well with the expansion of states that "flat" state
>> machines have when working in real life projects.
>>

>


I'm not sure if your comments are addressing my post or nobody's one,
so. . .

> I'm confused... UML 2.0 is very broad and includes multiple tools for high
> level software design. OO would be a subset of that, right?


UML is a 'modeling language' so is not a tool nor includes any tool at
all. I will take you're using 'tool' here as figure of speech.

>
> Anyway, the hierarchical state charts are one tool that I've found
> particularly useful in the past. It has worked for me when using C on
> embedded chips.


Yes, that's why I made my comment above.

>
> I don't see how that would automatically mean I'm engaged in bad OO
> design...


Me either.

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
 
Reply With Quote
 
Dan Henry
Guest
Posts: n/a

 
      10-23-2009, 08:12 PM
On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
<> wrote:

>I'm looking for a Statechart (Harel) tool that supports C code generation,
>and is free (not trial copies). Any suggestions?


IAR's visualSTATE http://www.iar.com/vs

--
Dan Henry
 
Reply With Quote
 
Cesar Rabak
Guest
Posts: n/a

 
      10-23-2009, 08:52 PM
Dan Henry escreveu:
> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
> <> wrote:
>
>> I'm looking for a Statechart (Harel) tool that supports C code generation,
>> and is free (not trial copies). Any suggestions?

>
> IAR's visualSTATE http://www.iar.com/vs
>

But it is not free, is it?

--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
 
Reply With Quote
 
Dan Henry
Guest
Posts: n/a

 
      10-23-2009, 09:16 PM
On Fri, 23 Oct 2009 16:52:20 -0300, Cesar Rabak <>
wrote:

>Dan Henry escreveu:
>> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
>> <> wrote:
>>
>>> I'm looking for a Statechart (Harel) tool that supports C code generation,
>>> and is free (not trial copies). Any suggestions?

>>
>> IAR's visualSTATE http://www.iar.com/vs
>>

>But it is not free, is it?


It is not free. Moments after posting I reread the OP's "free"
qualifier and canceled the message, which obviously did not work.

--
Dan Henry
 
Reply With Quote
 
Chris H
Guest
Posts: n/a

 
      10-24-2009, 10:11 AM
In message <hbt1hj$411$>, Cesar Rabak
<> writes
>Dan Henry escreveu:
>> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
>> <> wrote:
>>
>>> I'm looking for a Statechart (Harel) tool that supports C code
>>>generation, and is free (not trial copies). Any suggestions?

>> IAR's visualSTATE http://www.iar.com/vs
>>

>But it is not free, is it?


Nothing in this life is free.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



 
Reply With Quote
 
Marco
Guest
Posts: n/a

 
      10-24-2009, 04:06 PM
On Oct 23, 12:52*pm, Cesar Rabak <csra...@bol.com.br> wrote:
> Dan Henry escreveu:> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
> > <7owsx1...@sneakemail.com> wrote:

>
> >> I'm looking for a Statechart (Harel) tool that supports C code generation,
> >> and is free (not trial copies). Any suggestions?

>
> > IAR's visualSTATEhttp://www.iar.com/vs

>
> But it is not free, is it?
>



it allowed some states or so for free in the trial version (not sure
if trial legal for commercial use) I haven't looked into this in a
while
 
Reply With Quote
 
Marco
Guest
Posts: n/a

 
      10-24-2009, 04:12 PM
On Oct 15, 1:53*am, "Marc Hillman" <7owsx1...@sneakemail.com> wrote:
> I'm looking for a Statechart (Harel) tool that supports C code generation,
> and is free (not trial copies). Any suggestions?


http://www.intelliwizard.com/ GPL
 
Reply With Quote
 
ql
Guest
Posts: n/a

 
      10-24-2009, 04:53 PM
Since this forum mentions my book ("Practical Statecharts in C/C++")
and the website (www.state-machine.com), I'd like to clarify some
misconceptions about state machines, UML, and tools.

For starters, I'd recommend reading a few articles about modern state
machines in embedded systems (see also www.state-machine.com/resources/papers.htm).

1. The articles "Who Moved My State" (http://www.ddj.com/cpp/
184401643) and "Back to Basics" (http://www.ddj.com/cpp/184401737)
explain what state machines are and what kind of programming problem
they address. You learn how state machine can become very powerful
"spaghetti-code reducers" and how they are fundamentally different
from flowcharts. The article gives also some guidelines for designing
state machines and concrete C and C++ code examples (the code is
available for download at http://www.state-machine.com/writings/cuj.htm).

2. The article "Déjà vu" (http://www.ddj.com/cpp/184401665) introduces
the more advanced concept of hierarchical state nesting and shows how
it counteracts the "state and transition explosion" problem of
traditional non-hierarchical state machines. The source code
accompanying this article is available for download at
http://www.state-machine.com/writings/cuj.htm.

3. The article "UML at $10.99" (http://www.ddj.com/embedded/188101799)
shows that contrary to widespread misconceptions, modern hierarchical
state machines are applicable to the tiniest, deeply embedded
microcontrollers. This article shows an tiny state machine framework
and real-time kernel running in a USB Toolstick from Silicon Labs
(8051-based C8051F300 MCU), with just 8K of flash ROM and 256 bytes or
RAM.


The bottom line is that to use state machines effectively, you first
need to make a paradigm shift from the traditional sequential
programming (such as a traditional RTOS or just a "superloop") to
event-driven programming. Event-driven programming leads to inversion
of control (a.k.a. the Hollywood Principle: "Don't call us, we'll call
you") between the application and the event-driven infrastructure.
This inversion of control, in turn, means that the event-driven
infrastructure for executing state machines naturally takes a form of
an application framework.

Which brings us to the tools based on state machines. As it turns out,
virtually all such code-generating tools have an event-driven
framework buried inside (e.g., the Rhapsody tool generates code for
either the OXF or the IDF framework). In fact, the framework is the
most important enabler of automatic code generation.

But you don't need a big tool to use an event-driven framework. You
just need the framework. For example, the QP family of very
lightweight, open source frameworks (https://sourceforge.net/projects/
qpc/) are designed for manual coding of hierarchical state machines .
The code you need to write directly in C or C++ is actually simpler
than the state machine specification for the SMC compiler (https://
sourceforge.net/projects/smc/) mentioned in this forum. SMC is not
hierarchical.

Miro Samek
http://www.state-machine.com


 
Reply With Quote
 
Chris H
Guest
Posts: n/a

 
      10-24-2009, 08:04 PM
In message <>, David Brown
<> writes
>Chris H wrote:
>> In message <hbt1hj$411$>, Cesar Rabak
>> <> writes
>>> Dan Henry escreveu:
>>>> On Thu, 15 Oct 2009 19:53:35 +1100, "Marc Hillman"
>>>> <> wrote:
>>>>
>>>>> I'm looking for a Statechart (Harel) tool that supports C code
>>>>> generation, and is free (not trial copies). Any suggestions?
>>>> IAR's visualSTATE http://www.iar.com/vs
>>>>
>>> But it is not free, is it?

>> Nothing in this life is free.
>>

>Perhaps you should find yourself a better life?


I have a very good life. It is based in reality.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Steinberg Xphraze, The Music Box, VSL VIENNA SYMPHONIC LIBRARY,INSTRUMENTS I, II, and EWQLSO, COLOSSUS, RA, CHOIRS, East West Quantum LeapSymphonic Orchestra library ola@mail.gr Apple 0 12-02-2007 01:26 AM
Asus DMI Editing Tool? HIQ Asus 0 07-20-2007 05:30 PM
Learn What Hackers Know and How Hackers Attack !!! Part 1 DR Candra Apple 0 04-25-2007 01:42 AM
[Announcement] FlashBoot - a tool to make USB Flash Disks bootable PrimeExpert IBM Thinkpad 1 02-11-2005 07:56 PM
Mac OSX software list Bill Law Apple 12 09-27-2004 08:20 PM


All times are GMT. The time now is 10:24 AM.

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