Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > Re: Translating...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 20 Topic 708 of 811
Post > Topic >>

Re: Translating an embedded C algorithm

by "Talulah" <paul.hills@[EMAIL PROTECTED] > Jan 18, 2007 at 05:33 AM

Thanks Richard. However, the reason for the request is that I am
writing a book about embedded real-time programming, where C is
generally the language of choice. Pascal is virtually unheard of in
this market, although embedded pascal compilers are available. The
intention is to show readers how Pascal compares with C for a typical
embedded product snippet of code.

cheers,
paul


Richard Engebretson wrote:
> Talulah wrote:
> > Thanks very much Eli, I'd appreciate that.
> >
> > paul
> >
>
> I'm sure Eli can do a good job of it.
>
> My approach would be different. I view Pascal as a higher level
> language than C. Translating C to Pascal is not always necessary to
> incor****ate a C function into a Pascal program. Indeed, many pascal
> programs directly incor****ate assembly language in the code.
>
> A more reliable approach might be to build a standard, embedded C
> library and directly call the C function from pascal. Both FreePascal
> and GnuPascal do this nicely. GnuPascal is built this way.
>
> For example, I'm using the excellent FreePascal NCurses Unit (function
> module). The standard NCurses C library is unchanged. Then I use the
> high level Object Pascal constructs to avoid where C fails; panels,
> menus, forms, widgets.
>
> Developing parallel C and Pascal code for embedded systems would be
> hard to certify.
 




 20 Posts in Topic:
Translating an embedded C algorithm
"Talulah" <p  2007-01-15 06:35:25 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-16 02:53:13 
Re: Translating an embedded C algorithm
Eli Gottlieb <eligottl  2007-01-17 10:01:22 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-18 01:09:20 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 03:06:48 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-18 05:33:09 
Re: Translating an embedded C algorithm
Femme Verbeek <fv@[EMA  2007-01-18 14:39:52 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 08:52:16 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-18 09:31:54 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-18 16:49:45 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-19 03:50:21 
Re: Translating an embedded C algorithm
Jonas Maebe <Jonas.Mae  2007-01-19 14:32:45 
Re: Translating an embedded C algorithm
Marco van de Voort <ma  2007-01-19 15:25:10 
P-Code, JVM and IL (was: Translating an embedded C algorithm)
"Chris Burrows"  2007-01-20 10:55:47 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-19 17:33:00 
Re: Translating an embedded C algorithm
CBFalconer <cbfalconer  2007-01-19 17:15:56 
Re: Translating an embedded C algorithm
Waldek Hebisch <hebisc  2007-01-19 21:53:51 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-20 08:12:24 
Re: Translating an embedded C algorithm
"Talulah" <p  2007-01-22 01:45:19 
Re: Translating an embedded C algorithm
"Richard Engebretson  2007-01-23 04:01:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:32:12 CDT 2008.