× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That's good for C, but even those procedures with INLINE won't InLine when
bound to an RPG IV program, right? (That wasn't my original point; I just
don't want people to think if you use an inlined C function it will inline
in RPG IV.)

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Barbara Morris
Sent: Friday, June 24, 2005 4:38 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Assembly programmers do it a byte at a time

Bob Cozzi wrote:
> 
> What C (on the 400) is missing is an INLINE compiler feature, as is RPG
IV.
> This would probably solve the subroutine vs subprocedure performance
> disparity.
> 

C has an inline feature.  See the INLINE parameter on the crt commands. 
You can get it to inline automatically with 
  INLINE(*YES *AUTO)
or you can explicitly say which functions you want inlined with
  INLINE(*YES *NOAUTO)
and then using #pragma inline to specify the functions you want inlined.

(It's true that RPG doesn't have an inline feature.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.