TOC PREV NEXT INDEX DOC LIST MASTER INDEX



Rational Apex Embedded Solaris to M68K Family Release Note for Rational Exec

This release note applies to Release 4.0.0 B of Rational Apex Embedded Ada 95/83, Solaris to M68K Family for Rational Exec and Rational Apex Embedded Duo Solaris to M68K Family for Rational Exec. It provides a development and runtime environment for real-time embedded applications using Ada, C, C++, and assembly language.

Note: Starting with the 4.0.0 releases, the rada executable used to code Apex Embedded Ada views is the same executable shipped with the native product (Please check the native Apex patch descriptions for possible newer versions of rada).


Latest Release Note

The "latest" Release Notes for Rational Exec can be viewed on–line.

The Rational Apex for Rational Exec product includes a statistical profiler, format converter, tasking logic analyzer, network TDM (EneT), and C/C++ support.

Note: The EneT product is separately licensed and may not be available for all target processors. To purchase a license for this product, contact your Rational sales representative.

Example configurations are provided for a number of target processors.

Target Processor

Supplied BSP Configuration

Motorola 68020/030 with Hardware Floating Point
Motorola MVME147
Motorola 68040
Motorola MVME167
Motorola 68060
Motorola MVME177

Full instructions for using this product are provided in Programming for Rational Exec. Configuration information is provided in the Configuring Rational Exec.

For users who may be migrating from VADS to Apex, additional information about porting application software is provided.

This document contains only release notes specific to the Rational Exec aspects of this product. Release notes for the parts of this product also applicable to the native Apex product are provided in a separate release note document.

This document covers the following:


Host and Target Specifications

Host: Sun SPARC workstation running Solaris 2.6, Solaris 7, or Solaris 8.

Target: Motorola 68020/30 with Hardware Floating Point Unit, 68040, and 68060.


Documentation

Documents specific to this product are:

Release Notes for Rational Exec (this document)
Programming for Rational Exec
Configuring Rational Exec
Command Reference
Using MARK with Rational Exec.
Using EneT with Rational Exec
Utilities Guide

These documents are available in both hard-copy and online format. Online they can be accessed through the Help > Manuals command or the Doc List button in the navigation bar of each online manual page.


New Features in Release 4.0.0B

Apex GUI and Command Line Features

Single Rada and apex_compiler_tool

Starting with the 4.0.0 releases, the rada executable used to code Apex Embedded Ada views is the same executable shipped with the native product (Please check the native Apex patch descriptions for possible newer versions of rada). The code generator apex_ada_cg_phase and optimizer apex_ada_optim_phase executables are not shared. The location of the rada, apex_ada_cg_phase and apex_ada_optim_phase executables are determined from the view the user is coding in. The apex_compiler_tool script can be used to determine the location of these tools. For example:

Model Description Files

Apex Embedded provides many $APEX_BASE/ada/model.ss views with each release. The view names can be long and their meaning can be obscure. To help make sense of the information encoded in the view name, each model is now shipped with a description file. The description files explain what the cryptic portions of the view name mean.

This description can be viewed from the command line by invoking the properties command with the -model_info option. The properties command can specify a model.ss view directly, or another view modeled on a model.ss view.

The description can also be viewed from the GUI. Dialogs that ask the user to select a model (e.g. File > New > New View) have a navigation icon next to the text field. Clicking the navigation icon displays the Model Navigator dialog. Once a specific model has been selected within the Model Navigator dialog, the model description file will be displayed in the "Information on selected model" section.

Model Visibility

When a user creates a new BSP (via the File > New > New BSP dialog or the apex_new_bsp command), they create new model.ss views. If the new model.ss views are located in the original $APEX_BASE/ada/model.ss subsystem, they will be visible to all users via the Model Navigator dialog.

However, if the new BSP has a destination base other than $APEX_BASE, the user must specify the level of "visibility" the new model.ss views should have: Everybody, Just Me, and Nobody.

The level of visibility effects which users see the models via the Model Navigator dialog. It does not effect any users ability to use the new views.

This visibility is achieved through the use of Apex Project files. Models with a visibility of Everybody will be visible to all users after they activate the user_models.everyone project. Models with a visibility of Just Me will be visible to the BSP creator after he/she activates the user_models.just_me project. Details on project activation can be found in the documentation for File > New > New BSP or apex_new_bsp.

New MARK Dialog

The File > New > New MARK dialog has been replaced by the File > New > New Source Release dialog.

Run, Debug, Download, and Targets Dialogs

The following four dialogs have been combined into a single dialog.

Each function is still accessed via the menus above. Once the dialog appears, users can switch between the four functions by selecting tabs within the dialog.

Upgrade Release

The Control > Maintenance > Upgrade To New Release dialog and corresponding apex_upgrade script are part of the Apex Native product. Starting with the 4.0.0B Native Apex release, this dialog and script now work for Apex Embedded.

ClearCase Integration

Users can now link, run, and debug programs from within Clearcase. Also, if you are in a clearcase view when starting your apex session, the File > New > BSP dialog will give you the option of creating the new BSP as Clearcase *.rss subsystems rather than CMVC *.ss/*.{wrk,rel} views.

New Source Release and apex_create_runtimes

Customers can purchase source releases of Apex Embedded products. These source releases include full source to $APEX_BASE/ada/*.ss/*.rel views (no API's) including the views used to create the runtime archives.

The File > New > New Source Release dialog can be used to make a copy of the entire set of views so that development work will not alter the installed product.

Note that MARK (Minimal Ada Runtime Kernel) is a special case of a source release. The File > New > New MARK dialog has been replaced by the File > New > New Source Release dialog.

When doing development that effects the runtime archives, it can be difficult to determine what views need recoding, and what runtimes need re-linking after source code changes have been made. To simplify this process, we have created the apex_create_libraries command. The syntax of this command is simple. You point it at the directory containing links to all the runtimes archives (i.e. the directory identified by a BSP model's RUNTIMES switch) and it takes care of coding views, and re-linking archives.

Ada Compilation System

Alignment of Types and Objects

The default alignment of types and objects has changed in Apex 4.0.0. Be aware that in the absence of representation clauses specifying the alignment of a type or object, the compiler is free to choose the optimal alignment with respect to performance. See the Apex native Release Notes for more details.

Support for implementing new I/O channels for Ada.Text_Io

Support for implementing different I/O channels other than the default is provided in Rational Apex 4.0.0 Embedded. The new design allows for either replacing the default or simultaneously having multiple I/O implementations for Ada.Text_Io.

Runtime

Kernel Configuration

A new tool has been added for configuring the Rational Exec kernel to remove unneeded services so as to reduce its size. For details, see the section titled "Configuring the Kernel Services Package" in Configuring Rational Exec.

Time Configuration

The configuration of the Ada.Real_Time.Time type, including the value of Ada.Real_Time.Time_Unit, Ada.Real_Time.Tick, their relationship to the underlying hardware time base, and the granularity of delay clauses, has been streamlined in Rational Apex 4.0.0 Embedded. See Using the Ada Runtime for details.

Note that Time is not configurable in Apex Embedded for LynxOS, nor for any self-hosted version of Apex.

Task Names

In Rational Apex 4.0.0, task names based on the source code are available at execution time. These names can be obtained using the Ada.Task_Identification.Image interface (see LRM C.7.1) from the systems_programming.ss subsystem. Note that these are not fully qualified names, and that generic names are used for anonymous tasks (e.g. task array elements). The image of a task sequence number is included in these names to insure that they will be unique within a given program execution.


New Features in Release 3.2.0B

There is now only a single variant of Apex Embedded Sol -> M68K for Rational Exec. In the past we had 2 products: one for 68020/30/40 and the other for 68060. These have now been merged into a single product "Rational Apex Embedded Solaris to M68K Family for Rational Exec". As a result licensing has changed as noted in Licensing Changes.

Starting with this release there is a subsystem which provides some example mixed Ada / C++ programs to try out. The subsystem is called duo_examples.ss. Here is the README file from that view:

This view contains the Ada main programs for Duo (mixed Ada and C/C++) code examples which can be used to test and demo various features of Apex on a release after it has been installed. The C/C++ code for these examples is located in the corresponding view of c_examples.ss which goes with this BSP.

Each subdirectory here contains a different example or a group of closely related examples. Additionally, each subdirectory contains a README file which describes the example(s) present and any special steps needed to build and run them.

Below is a synopsis of each subdirectory of examples:

hello
The Duo "Hello World" program.
multi
A C++ program that tests a number of features including exceptions, templates and static constructors and destructors.

To link the program, you must first import the c_examples.ss view into the Ada view, and then enable C++ linking via the "Compile > Maintenance > Enable C++ Linking" menu item in the Apex directory viewer for the Ada view. Once that is done, you can link the Ada main program by selecting it and hitting the "Link..." button.

Note: To use this examples view you must first import the correct $APEX_BASE/c++/c_examples.ss view for this target architecture.

Ada Compiler

Apex 3.0.1 for embedded platforms included the package Language in the rational.ss subsystem. This package provides constants useful for interfacing to other language implementations on those platforms. For example, the prefix character added to link names by those language implementations.

The function of this package has been superseded by the Apex implementation of the Import, Export, Convention, and Calling_Convention pragmas. In particular, the compiler will treat the External_Name argument to the Import and Export pragmas as a name in the target language and perform the necessary modifications to that name to create the corresponding link name. Note that no modifications are made if the Link_Name parameter is used instead of External_Name.

These features make the Language package obsolete for the Apex embedded products. It has therefore been removed from 3.2.0 and later embedded releases.

Licensing Changes

The licensing for the 3.2 release has changed. New licenses are required for all components. The product now contains product wide licenses for each component and not target variant specific license.

There is only one M68K license instead of a different license for the 68060 and 68030/040 targets.

Address Clauses

In embedded VADS programs Ada address clauses for with static addresses were represented by a linker group to prevent overlapping use of the memory associated with address clause variables. This feature is no longer supported by the Apex compiler. The Apex compiler allocates a pointer to the address specified in the address clause and all accesses to the variable are implemented as indirect references through this pointer.

In some circumstances the optimizer is able to optimize away the pointer and make references directly to the specified address. There is no mechanism to assure that the specified memory address isn't allocated by the linker to some other part of the user program.

Changes to the Apex Assembler

Overview

As of the 3.2.0B release of Apex Duo, the assembler provided with the Apex Cross product has changed from being a product written by Rational Software, to the public domain GNU assembler and preprocessor.

There were two reasons for doing this:

Rational has integrated the GNU assembler into the Apex environment, so that assembling code is still just a point-and-click operation.

The GNU Assembler, gas (sometimes just referred to as 'as'), uses a different preprocessing language than did the Rational assembler, which itself was very similar to cpp (the C language preprocessor). The tool that GNU uses is called gasp (for Gnu Assembler Preprocessor). In many ways, gasp is more powerful than cpp, though its syntax is radically different and takes a bit of getting used to.

Documentation

The documentation provided for gas and gasp are directly from the GNU source.

Please view the GNU Assembler documentation provided online for more information.

Using the GNU Assembler

The GNU assembler can be used only from a view which uses a C++ model. It cannot be used from an Ada83 or Ada95 view.

The Assembler code, which must end with a ".s" or ".asm" suffix should be placed into the view. The Apex "code" button or the command "apex code" can be used to invoke the assembler on your source.

Assembly Process

To translate an assembly language source file into a VOX format object file, Apex does the following:

1 . Invokes the Rational Apex C/C++ compiler (hence referred to as rcc) on the source files in the view

2 . rcc recognizes that a source file is assembler, via the file's suffix (.s or .asm)

3 . rcc invokes a wrapper script called "rasm" with options provided by two files both named Spire.cfg. One of them contains target independent switches, and the other contains target dependent switches. The format of the Spire.cfg files is not documented and we don't suggest that you modify them. rcc also adds any options that were specified by the S_OPTIONS policy switch.

4 . rasm sorts the switches passed to it into two categories: switches for the preprocessing by gasp, and switch for assembling by gas.

5 . rasm invokes gasp with its switches, producing an intermediate file called with the extension ".E"

6 . rasm invokes gas with its switches and the .E file as input, producing an A_OUT format object file.

7 . rasm invokes the object code converter, apex convert, to convert the A_OUT format file to VOX format.

To add switches that weren't included by default, you can set the S_OPTIONS policy switch to add the assembler options that you want. However, they must be suffixed by the string "-Wa,", for example "-Wa,-mregnames". This tells rcc to pass the switch "-mregnames" onto rasm. Note that if you use the command "apex set_switch S_OPTIONS ..." to set the switch, you'll need to put the actual switch value in double quotes and include a leading space, e.g.:

As stated above, the gasp preprocessor uses a syntax which is quite different from the processor language used by the original Rational Apex Cross Assembler. However, it isn't that difficult to use.

In most cases, a .define directive can be turned into one of: .MACRO, .ASSIGNC, or .EQU, depending on the actual source. See the gasp documentation for details.

Since gasp doesn't have an ability to see if a variable is defined or not, all variables must be defined before they are tested. So to translate a ".ifdef <var>", you must first have defined <var> as either a 0 or a 1. Subsequent statements can then test the value of <var> using an .AIF statement rather than testing it for its existence. For example, ".ifdef is_powerpc" could be translated to ".AIF is_powerpc EQ 1". Likewise, ".ifndef is_powerpc" would be translated to ".AIF is_powerpc EQ 0".

Forcing the definition of variables that wouldn't otherwise need definition may sound like a nuisance, but it's actually a good thing. It eliminates errors where a mysterious code change occurs because someone removed a definition somewhere.

".if" statements are a little more tricky.The logical operators &&, ||, and ^^, can be synthesized by using the bitwise logical operators. So if you have some code that looks like this:

You could translate it to:

Please see the GNU Assembler documentation provided online for more information.

Command-line Interface

For a complete description of the following commands see the Programmer's Guide.

New commands
apex_discard_target
remove physical target from physical database
apex_map_info
provide information on mapping of logical targets
apex_map_target
map a logical target to a physical target
apex_ping_target
ping a target to determine if it is alive
apex_reserve_target
reserve a target
apex_set_logical_attributes
alter information about a logical target
apex_set_logical_name
set the LOGICAL_TARGET_NAME switch for a view
apex_set_physical_attributes
create a new physical target or alter an existing one.
apex_target_info
provide information about a physical or logical target
apex_unmap_target
remove mapping from the specified logical target to whatever physical target it was mapped to
apex_unreserve_target
change the status of a target from reserved to unreserved

Changed commands

apex_execute

The new version of apex_execute differs as follows:

Removed commands

apex_add_target and apex_target_control have been replaced with the new commands mentioned above.

Compiler

The c compiler now supports "asm" statements.

Machine_Code subprograms will always be out of line unless "pragma inline" or "pragma inline_always_apply". Optimization more aggressively inlines subprograms, to avoid this an a particular subprogram apply the pragma inline_never.

Disassemble of an entire executable is supported via the command line.

Debugger

Attaching task entries to interrupts has been made operational on all architectures.

Documentation

There is a new section in the Configuration Guide on Running an Application without TDM.

Emulator

The emulator support has been enhanced. For example the "no-kernel" environment is more fully supported and the HP softprobe has been fully tested for the PowerPC 603, 603e, 604, 750, 860 and the Pentium with the latest firmware from HP.

GUI

Tools > Convert from the GUI now successfully creates a message in the directory window to reflect the update.

No-Kernel Configuration

An extensive example has been added to Configuring Rational Exec on how to build a loader program using the nk "kernel" which transfers a kernel program from ROM to RAM.

After the copy is finished, the caches are flushed to ensure consistency, then control is transferred to the kernel's entry point.

Runtime

All of the runtime archive and predefined components have been compiled at optimization level 2 with the optimization objective set to space (instead of time). This provides the smallest footprint for embedded applications as well as the best performance.

Target Control

Target Control has been restructured for the 3.2.0B release. New target control GUI implementation allows physical targets to be globally visible resources for a development team yet still allow individuals to reserve individual physical targets. Multiple targets can be manipulated from the same Apex session.

Please read the Target Control Chapter in the Programming Guide and refer to Getting Started.

Validation Testing

ACVC validation test suites are certified at optimization levels 0, 1 and 2 with optimization objective of SPACE.


New Features in Release 3.0.2

This release is not available for all platforms. It is essentially the 3.0.1 release with all patches applied. In addition, there are a number of bug fixes, in particular, those found in the code generator. See also Known Limitations and Defects Resolved in Release 3.0.2.


New Features in Release 3.0.1

New BSPs

In this release, the mvme2603, mvme2604, and mvme2700 are supported by BSPs with the board_variant identifier mvme2xxx.

The mvme1603 and mvme1604 are supported by BSPs with the board_variant mvme160x.

Support has been added for the mpc860 board identified with board_variant mpc860ads.

For information about the term board_variant and BSP naming conventions, See "View Naming Conventions" in Configuring Rational Exec.

Interrupts

Ada 95 adds the capability of interrupt handlers to protected objects. (The full details are in LRM Appendix C and D.)

The Rational runtime environment for interrupt handling is documented in "Interrupt Handling" in Programming for Rational Exec.

Debugger

Multiple Target Extensions

Users can now debug multiple targets using only one debugger engine. For multiple target debugging, users must use the program_file debugger invocation option and specify the information for each target that will be in the debug session.

Additional information on multiprogram debugging can be found in Using the Apex Debugger and Programming for Rational Exec.

Additional support is provided for target systems that support hardware or software synchronization between the targets in the system. This synchronization is characterized by one-stop/all-stop and one-go/all-go target activity and requires TDM support. Debugger support of synchronized target hardware is described in Programming for Rational Exec.

Minimal Disturbance Debugging

This Apex debugger feature enables users to debug one or more embedded targets with minimal disturbance. The debugger is asynchronous, allowing the user to debug the application while it is running. This feature is only available on Sun Solaris => PowerPC systems.

Two new environment variables, APEX_RDT_SERVICE and APEX_RDT_TIME are required for this feature to work.

Minimal disturbance debugging is enabled using the Realtime checkbox on the File > Run or File > Debug dialog, or the –realtime, –realtime_attach, or –realtime_attach_with_exceptions command line options to the apex_debug command.

Minimal disturbance debugging is described in detail in "Minimal Disturbance Debugging" in Programming for Rational Exec.

Inlining of Machine Code

In Apex 2.4.2, the compiler front-end had difficulty expanding machine code procedures inline, and in particular, handling <parameter_register>'Ref operands. The workaround was to refer to out-of-line machine code procedures and to avoid auto-inlining by not using Optimization Level 2.

In Apex 3.0.0, most problems with inlining machine code procedures have been fixed. Some problems remain. For example, there are problems in expanding <register'Ref> references when parameter registers are referenced inside of implicit functions. As discussed above, auto-inlining of machine code procedures is now disabled at all levels of optimization.

If you choose to implement a machine code procedure so that it is inlined, take special care if that function uses the disp() or base() implicit functions. These functions will not be expanded properly if a parameter register is referenced with a 'Ref inside of the call to base() or disp(). For example:

The following will not work:

The problem is that, above the Cnt'Ref construct refers to the parameter register Cnt, and this reference occurs inside of a call to the intrinsic function base() (which generates a register indirect reference). The base() reference will not expand correctly; in fact, it will expand into a reference to R0 (register zero).

The following will work:

The workaround, shown above, is to move the parameter register (Cnt) into a physical machine register (T0), which is used as a temporary.

Safe To Use the V_BITS Interface

Because of the fixes in the implementation of the inlining of machine_code procedures, it should now be safe to use the V_BITS package exported by the vads.ss subsystem. The V_BITS package exports bit operations that are implemented as inline expansions and are likely to be more efficient than the non-inline implementation in V_I_BITS. The V_I_BITS function was recommended for use in 2.4.2 due to the bug in the implementation of inlining.

Reference to Large Unsigned Constants

In machine code procedures, it is sometimes necessary to refer to a large unsigned constant, which has bit 31 set (the sign bit in a signed 32 bit integer). In Apex 2.4.2, such references were allowed. However, in Apex 3.0.0 and above, these constants are checked more carefully to ensure that they conform to the proper type semantics. If a reference to a constant has the sign bit set, for example, to 16#8000_0000#, the number must be passed as an argument to the built-in intrinsic function, IMMED_MOD32(). For example,


New in Release 3.0.0

Debugging Support for HP 3490 Software Probe

Support for debugging with the Hewlett-Packard 3490 Software Probe, previously released as a patch for Rational Exec 2.4.1 is now part of the regular release. For information about the Rational Apex Hewlett-Packard 3490 Interface, see Programming for Rational Exec

Configuration Pragmas

Apex 3.0.0 provides a new facility called "configuration pragmas," that provide a method for applying certain pragmas such as "pragma Suppress (All_Checks);" to all units compiled in a given view. The configuration pragma facility is defined in Appendix F (Ada83) and Annex M (Ada95) of the Compiler Reference manual. Briefly, when an Ada source file named pragma.1.ada is compiled in a given view, this "pragma" file specifies all the default pragmas that are to be applied to all units compiled in that view.

For example, the following pragma.1.ada definition:

Note: The contents of a pragma.1.ada unit is only a list of pragmas. There is no containing package specification, or other syntax to introduce the pragmas.

See Configuration Pragmas for Apex 3.0.0, 3.0.1 and 3.0.2 under Known Limitations.

Optimization Levels

The default optimization level is Level 1, which implies some optimization is done. You can change the default optimization by changing the OPTIMIZATION_LEVEL switch value. If this change is made in a model, the change will be apply for all views that use that model; therefore models can be used as a central place to change the default optimization level if required.

Optimization Level 1 is the default, because it provides a reasonable trade-off between compilation time, and the efficiency of the resulting generated object code. Optimization Level 2 will generally improve on Level 1, at some cost in compilation time.

"No optimization" is sometimes appropriate in code that has been tuned to meet certain hardware timing constraints, or in machine_code procedures that require explicit control over the instructions that are generated. Optimization Level 0 can be set as a compilation switch, and apply to all compilations in a view, or can be selectively enabled with:

This Optimize_Code() pragma must be located inside the procedure that it applies to.

In Apex 2.4.2, at Optimization Level 2, the compiler would sometimes aggressively "auto-inline" routines not already designated explicitly as inline routines. This could lead to certain difficulties, when the inlined routine was a machine code procedure. The Apex 3.0.0 compiler still performs auto-inlining at optimization level 2; the only difference is that it does not auto-inline machine coded routines. As discussed below, the OPTIMIZATION_OBJECTIVE:SPACE switch value can be used to decrease the degree of auto-inlining (of non-machine code procedures) at Optimization Level 2.

With Apex 3.0.0, it should now be safe to use Optimization Level 2 (because of problems with machine code, the recommended practice was to avoid Optimization Level 2 when compiling with Apex 2.4.2),

OPTIMIZATION_OBJECTIVE:SPACE

Apex 3.0.0 has improved the ability to minimize space when the SPACE optimization objective is asserted.

The switch OPTIMIZATION_OBJECTIVE:SPACE, turns off loop unrolling and makes inline expansion less aggressive. Only very small routines will be inlined... those for which the inlined body will be smaller than the call. For example:

Pragma Inline_Never

The pragma Inline_Never can be used to disable auto-inlining of a particular routine. However, in most cases this is unnecessary. OPTIMIZATION_OBJECTIVE:SPACE eliminates most of the auto-inlining situations. Further, Apex 3.0 will never auto-inline (choose to inline a routine that has no pragma inline, or pragma inline_only) a machine code procedure.

Control over Record Layout

A representation clause must be used to ensure that a record has a particular layout in memory. For example, this is necessary when Ada code calls a routine written in machine code and the called routine expects a specific layout. Without a representation clause, the Ada compiler is free to choose the ordering of fields inside a record, and often will reorder the fields, for example moving arrays to the end of the record, and scalars to the beginning of the record.

If the record of interest doesn't contain dynamic sized fields or discriminant-dependent fields, pragma Convention(c, ...) can be used to control the layout of a record to agree with the order of declaration of the fields inside the record. For example,

will control the layout of Record_Type to agree with the C language convention. Consult Annex M in the Apex Ada95 reference manual for details.

Kernel and TDM are Compiled and Built as Ada95 Views

The krn_conf.ss and tdm_conf.ss subsystems define views that contain Ada source code, which may be customized and extended to tailor the Ada runtime kernel and the Target Debug Monitor (TDM) to the user's specific requirements. In Apex 3.0.0 the kernel and TDM configuration views that are shipped with the product are defined as Ada95 views (in Apex 2.4.2 these views were defined as Ada83 views). Therefore, the user who is customizing the kernel and TDM should first become familiar with the differences between Ada95 and Ada83. A few important differences are discussed below.

  • The following table shows the difference between the value returned for 'Size, when compiled in an Ada83 view, and in an Ada95 view:

      Note: The tdm_conf.ss and krn_conf.ss views must have the OPTIMIZAITON_LEVEL:1 switch set. Some subprograms must be inlined and inlining is only honored at OPTIMIZATION_LEVEL > 0.


    Known Limitations

    The known limitations of this release are described below. Note that the limitations also applicable to the native Apex product are listed in the release notes for the native product, which is a separate document. Workarounds are included where applicable.

    Upgrade to new Release

    The Control > Maintenance > Upgrade to New Release dialog does not work for Apex Embedded. Users can upgrade views using Control > Maintenance > Remodel. Select New Model then select the Replace Switches button.

    Array Storage Allocation for Apex 3.0.1 and 3.0.2

    In some cases, arrays that are declared constant and are initialized with calculated values are allocated storage dynamically instead of from the constant memory segment.

    Configuration Pragmas for Apex 3.0.0, 3.0.1 and 3.0.2

    In the future, Suppress (ALL_CHECKS) will be accepted in both Ada95 and Ada 83 package specifications. This is the preferred form of the pragma.

    However, in this release, pragma Suppress (ALL_CHECKS) does not always suppress all of the checks that this pragma applies to.

    Ref of Constants

    In machine code insertions, Apex does not create a concrete representation (a physical memory location) for scalar constants. For example, in the following code segment, the reference to S'Ref will lead to a compilation error.

    In most circumstances, the workaround is to declare the constant as a variable:

    For the i386 Family, when a machine code routine is explicitly inlined, a 'Ref to a formal parameter, when the actual parameter is a constant, does not get expanded correctly.

    Implicit Code Generation

    In some situations, the Apex 2.4.2 compiler generated "implicit code" when evaluating Memory_Location'Ref operands. The implicit code generally evaluated the address in a temporary register, rather than just using the memory operand directly. The compiler front end did not recognize situations where the memory operand was simple enough that a temporary register (and the implicit code to evaluate the memory address referred to in the 'ref) was unnecessary. The resulting object code was correct, but generally less efficient, and inappropriate if implicit_code(off) was requested.

    The 3.0.0 compiler handles more situations where it recognizes that implicit code is unnecessary. The 3.0.0 compiler, however, is still sometimes overly strict when evaluating the allowed types for operands in machine code statements, and may issue warnings that appear unnecessary given the context.

    Ada Representation and Address Clauses

    In certain situations, the Apex Ada compiler would generate code that accessed more bytes than required when reading or storing into a bit field inside a record declared with a representation clause and a "for `Address use" address location clause. The compiler would convert the bit accesses to a full word access, rather than using the smallest possible storage unit (1, 2, or 3 bytes), or the most "natural" storage unit (that is, a halfword if the bit field is 16 bits, and has an even byte address). This happens, because the compiler does not track the alignment attributes of the address used in the address clause.

    For various technical reasons, the Apex compiler handles bit fields inside of objects declared with "for use at" clauses in the manner described above. The suggested workaround is to avoid using the "for use at" clause to overlay a record onto a physical location that is mapped to physical I/O devices. Instead, define an "image" copy of the register in RAM, modify that copy, and then use a machine_code procedure to write the this image copy in RAM to the actual physical memory address of the desired memory mapped I/O device. This approach will lead to more efficient code, because the compiler will properly keep track of the alignment attributes of the fields declared inside the memory image copy of the hardware register.

    C/C++

    Linking Ada 95 Code

    If you link Ada 95 code that does not use standard output to C/C++ code that does attempt to use standard output, the C/C++ output will not print to the console. Workaround: Add "with Text_Io;" to your Ada 95 code and add the following line to be executed before any C/C++ calls are made that use standard output.

    This error does not occur when Ada 83 code is liked with C/C++ code.

    Include the -cpp Option

    If all the following are true, you should explicitly include the –cpp option on the command line when invoking apexinit:

    Adding the -cpp option in the above case will cause the C++ specific menu items to be displayed. In future releases of the Apex native product you should not need to explicitly include -cpp in the apexinit command line.

    Inlined Machine Code

    A reference to the V_BITS.BIT_AND function caused the rada compiler front-end to abort with an assertion error. This problem occurred on the inlining of any machine_code procedure that referred directly to hard-coded parameter registers (e.g., a0, a1). The workaround was to disable auto-inlining by using Optimization Level 1, and to refer to the out-of-line bit operations in the V_BITS package. A related problem is that the compiler front-end had difficulty in expanding machine_code procedures inline, and in particular, handling <parameter_register>'ref operands. The workaround was to refer to out-of-line machine_code procedures, and to avoid auto-inlining by avoiding Optimization Level 2.

    Most problems with inlining "machine code" procedures have been fixed in 3.0.0. Some problems remain. For example, there are problems in expanding <register'ref> references when parameter registers are referenced inside of implicit functions. Auto-inlining of machine code procedures is now disabled at all levels of optimization. It should be safe to use Optimization Level 2 (it had to be avoided in 2.4.2), with the knowledge that machine_code procedures will not be auto-inlined.

    Drag and Drop

    You can't Drag-n-Drop target to the Selected Target text area in Target Control dialog box. Work Around: Use the Select Target button and OK or Apply.


    Defects Resolved

    Problems fixed in the base Apex product are listed in the release notes for the base product.

    Refer to your product online documentation, Help > Manuals for the very latest updates to release notes

    Table 1 Defects Resolved in Release 4.0.0B
    Defect #

    Description

    1814
    Daylight Saving and Calendar
    2859
    Check_Config problem
    5456
    apex_symbol_info is broken for lynx and others?
    5462
    eTDM fails to init DEC21x4x correctly
    5468
    Single location for all timer configuration
    5554
    Comments in v_krn_conf.2.ada are wrong
    5607
    Floating point register corruption with mixed float types
    5630
    Link error with pragma Suppress(All_Checks) in separates
    5863
    Protected object failure
    5980
    apex_convert fails when relocating Srecords
    6066
    "The linker option ""Kernel"" is not used in Apex"
    6093
    Documentation on type time_t in Rat Exec Config guide missing
    6095
    16-bit unsigned immediate mode operand is out of range
    6126
    PowerPC: surprised by contents of PVR
    6184
    Tools:Convert hyperlink to Rexec Utilities Guide
    6216
    Help:PrintManuals... prints only two pages on one document
    6255
    "Ada.Real_Time (Time_Unit, Clock, etc.) configuration difficult, incomplete"
    6316
    3.4 Cross Logical target box on download/debug dialogs not used
    6339
    Warnings when coding instantiation of Ada.Numerics.Generic_Elementary_Functions
    6369
    System.Default_Bit_Order=High_Order_First for i386; should be Low_Order_First
    6494
    "Removing Unused Kernel Services, v_krn_srv.1.ada"
    6520
    Copying record fields at optimization 2 does not work correctly
    6552
    Internal Error: unable to generate /tmp/embedded_enviroment.10700
    6590
    disassembly of C objects does not work from the gui
    6591
    ada_examples/prof/prof.2.ada fails to link for ada83
    6717
    Imports between Ada and C/C++
    6732
    Tools:Convert dialogue image needs to be updated in doc
    6743
    m68k mcode: fsqrt_d param'ref with implicit_code(off) generates incorrect code
    6804
    v_mailboxes not supported in MARK
    6856
    Discriminated record causing dynamic memory allocation
    7072
    memory_simulator writeup missing from docs
    7073
    cannot create memory_simulator target
    7099
    Time_Error raised in Split during Daylight Saving Time change

    Table 2 Defects Resolved in Release 3.2.0B
    Defect

    Description

    Log Ref.

    127133
    problem linking cross with testmate/undefined symbols

    128136
    File > Shift-Run does not work in cross views

    129089
    dialog definition problem when LynxOS and other crosses are installed

    129529
    Unsupported BAT WIM Bit Settings
    523291
    129954
    task attached to an interrupt via for use at clause generates too much code

    129984
    Apex->LynxOS attach_handler pragma failure
    523747
    130970
    installing multiple embedded Apex products is confusing and undocumented

    131047
    Default RAM size (64MB) too large
    526246
    131552
    check_config warning messages are not helpful
    527334
    132066
    Apex unnecessarily generates implicit code
    528760
    132640
    TDM feature, KERNEL_START_ENABLED, not implemented

    132677
    Apex Cross x86 (2.4.1) Ada95 attribute 'ceiling is broken
    531240
    132710
    link_phase: XLINK: Unresolved reference to TS_DEFER_ABORT linking kernel

    132733
    Installation problem with Apex Cross

    134067
    problem with extend lifetimes and spill code on m68k

    140562
    elaboration checks randomly generated

    140616
    Problem with Rep Spec of Tagged Types in Apex Cross Ext ID:

    140932
    v_krn_conf.V_IDLE_PROCESSING should not be visible

    141150
    Machine_Code for Intel doesn't support MMX & Pentium-II processors

    141554
    Install problem with ApexCross Sol->Ix86 3.0.0 Beta2

    142565
    no -help option for apex_* commands

    142665
    Bad stack level reference for POWER

    143011
    regression test ar1156a fails: &&& [MID] in Stmt_Gen.Gen_Stmt - CONSTRAINT_E

    143018
    regression 129799 fails, wants to call System.Time_Interfaces.Normalize_Time

    143647
    Problems with pragma calling_convention

    143837
    ACVC chapter c/e fails on repeated tries

    143913
    Wild comment in BSP source

    143966
    Concatenating a null string with a non-null string gives a null string

    143997
    Lower priority tasks are NOT being preempted by higher priority tasks

    144111
    Ada 95 Streams Problem with Apexlx 3.0.1

    144192
    Problem with floating point register save/restore and multi-tasking

    144215
    Missing files in predefined.ss & numerics.ss

    144293
    ppc mcode: use of extended word forms causes assertion error in cg

    144297
    pragma.1.ada ignored when view is not clean

    144332
    C++ Keys Properties.sw file has errors

    144528
    Constraint_Error raised by gasket when prelinking booch

    144692
    Apex cross sol-->PPC v3.0.1 internal error

    144723
    apex code claims "No objects were coded ..." for the assembler

    144757
    System.Time_Interfaces is broken

    144814
    regression 124645 on lynx, extra level of indirection has been lost

    144900
    apex_convert -format INTEL_HEX cannot start a load above 1 meg

    145022
    bug in rdas, rdemangle, rdb scripts in C++ compiler

    145058
    Build.scripts need #!/bin/csh -f

    145077
    problem initialing array of packed records

    145083
    ada.calendar.split problem

    145249
    Documentation problem for the Apex Enet configuration

    145402
    32-bit floats passed in volatile registers

    145412
    Assembler missing from installation

    145567
    register offsets in pci_sup package wrong

    145568
    scan_bus ignores devices whos IDs are not divisible by 8

    145571
    TDM_IFACE_BLOCK hard-coded in net_conf

    145904
    Documentation needs to be updated to reflect -X option for disassembler

    145979
    Undefined symbols when link mixed Ada/C++ programs for cross/works

    145982
    Ada DUO program using just c should not need c_support

    146091
    Testmate coverage problem discovered in runtime

    146111
    Doc update for Embedded programming Guide for Rexec of Tools:Convert

    146266
    lynx profiling is not available in the gui

    146513
    TDM or kernel linked into high address space may not work

    146721
    simple_io missing from Apex

    146779
    [COD] case error at file /ned/rcc/cg.ss/sol.ppc.3_0_1.wrk/rtf_emit.c, line 2

    146781
    XLINK/LONG_CALL errors when changing NETWORK_TDM_START address

    146804
    apex_convert for IEEE gives segmentation fault

    146813
    problem with ppc software fp (cg assertion in rtf_preg.c)

    147246
    "apex link" does not prelink or link in Tornado testing towers

    147648
    External link fails using pragma Import_Function

    147702
    Timeout during debugger download

    147753
    Build.script does not have -f for csh

    147777
    malloc does not return 0

    147781
    #define HUGE_VAL __infinity() should be placed in the extern C clause

    147864
    Embedded master index has a bad link for link_block_address

    147879
    C++ allocator is calling wrong Ada allocator entry

    148267
    a.cvt: INTERNAL ERROR: while processing arguments

    148404
    References to Priority Inheritance should be removed

    148426
    Documentation links missing & lt command in debugger list of all commands

    149106
    The gnu assembler is required for the 3.2 power pc product (rx and vw)

    149260
    gui should not restart debugger engine after realtime detach

    149278
    regression 800104 function returning records failing [MID] in Stmt_Gen.Gen_S

    149616
    No kernel programs never end when using HP probe

    149618
    Cg generates inefficient code for "Li" pseudo-op

    150127
    Ping does not work from Tools > Target Dialog

    150135
    rinstall does not report all available Apex Solaris->PPC 3.2.0 releases

    Table 3 Defects Resolved in Release 3.0.2
    Defect

    Description

    Log Ref.

    121155
    128637

    The corruption of `First or `Last attributes after concatenation of a null string has been corrected.

    140562
    A problem with incremental compilation and pragma Suppress caused elaboration checks to be randomly generated. Sometimes elaboration checks would be generated after recompilation even when the source code was not changed with respect to pragma Suppress_Elaboration_Checks. This has been fixed.

    141201
    142218

    Problems with subtype mismatch in constraint check have been fixed.
    137553
    141762
    A fix has been made to the compiler to correct an error so that if a user-defined `Write routine is supplied for an elementary type and the default `Output is not overridden, calls to `Output will result in calls to the user's `Write routine.
    544460
    142045
    Some objects in collections for access types declared at library unit package scope were not finalized during program terminations. This is fixed.

    142189
    Problems with Assertion_Error during code generation have been fixed.

    142268
    The problem which caused the compiler to fail with an exception when attempting to generate code for a child unit of a generic when the body of the parent unit instantiates the child unit has been fixed. The problem exhibits when the parent unit exports an inlined subprogram.

    142409
    The problem with streams and asymmetric 16-bit types has been fixed.
    134530
    142447
    Three problems with compiler-generated calls to user-defined stream routines have been fixed. The problems occurred when the stream routine for a type with an attribute representation clause was overridden:

    1 For discriminate types, the compiler failed to pass the implicit `Constrained attribute parameter.

    2 For non-structured types, the compiler was passing a reference to the object rather than its value.

    3 For user-defined `Read procedures for access types the object was passed as OUT mode instead of IN OUT.



    143000
    A fix has been made for the problem where the compiler ignored stream attribute representation clauses inside generics. This prevented the override of the default compiler-generated stream routines for types declared inside generics.

    143139
    The compiler has been modified to issue a warning rather than rejecting undefined pragmas for RCI views.
    146239
    143147
    A fix has been made to the compiler to correct an error in exception propagation out of classwide-result-type functions.

    143725
    Pragma inline used on procedures is now coded correctly.

    143844
    Problems with records with tail filler have been fixed.

    144297
    Pragma.1.ada was ignored when the view was not clean. The prelinker was generating references to TS_DEFER_ABORT and TS_UNDEFER_ABORT even when the pragma.1.ada had restriction pragmas that should disable this: pragma Restrictions
    (No_Abort_Statements);
    pragma Restrictions
    (Max_Asynchronous_Select_Nesting => 0);
    This has been fixed.

    144900
    The Format Converter can now convert VOX executable format files into Intel Hex format.

    145077
    Arrays of packed records now initialize correctly.

    145083
    Code generated to store the values of out parameters from procedure calls now works correctly.

    145251
    Unreachable code fragments generated by pragma Implicit_Code(OFF) have been eliminated.

    Table 4 Defects Resolved in Release 3.0.1
    Defect

    Description

    Log Ref.

    121088
    Default runtime settings used by Apex and instructions for modifying them are now available in a new chapter to the Ada Runtime Guide, "Memory Management."
    501169
    124974
    Previously, the cross linker left an unresolved reference to __BIT_EXTRACT.
    509585
    127759
    File:<SHIFT>Run was not finding the indicated corresponding executable. This has been fixed.

    129268
    Machine code procedures to which the pragmas Inline_Only and Implicit_Code(Off) have been applied are inclined to fail if they are not inlined. Stricter enforcement of Pragma Inline_Only and more complete error messages fix this.
    127951
    131091
    The Check_Config dialog hangs when invoked from the GUI. This has been fixed.
    526497
    131159
    Shipped BSPs developed on MVME2600 boards with PPCBUG v2.0 failed on updated PPCBUG v3.1 firmware. The BSPs have been corrected.
    526246
    131294
    The compiler key delivered with 2.4.4 and 2.5.0 was missing apex_ada_optim_phase. This is corrected.

    131526
    V_I_Except.Exception_Name was not returning the correct exception name. This has been fixed.
    527646
    131615
    Instruction Cache Size, Data Cache Size, and No Cache Simulation radio buttons in the target control window were erroneously available for the RH32 target. Cache is not supported for RH32. The radio buttons are no longer available for RH32.
    527753
    131995
    Previously, users were unable to freeze their own release views because views imported from base were not frozen. Rational now ships frozen views.
    528859 544222
    132450
    132451

    Enet documentation now includes a description of Socket.Signal.The exception SOCKERR_SIGNALLED with its corresponding status, SIGNALLED, are now included in the documentation of the spec of Sock_Status.
    530412
    134026
    The address calculation for conversion among small enum types was incorrect. This has been fixed

    134073
    Problems occurred with the Link.des file attempting to reference objects in an API that did not exist. This resulted from usage of Link.des to reference units not inlined. Inlining is now corrected so that units can be inlined rather than being forced into the closure with Link.des.

    134455
    The code generator emitted invalid bounds constants for a conversion from a single precision float value to an unsigned tiny integer. The range check has been corrected to match the destination type size.

    140105
    When compiling Ada 95 Code, the compiler's middle pass failed with ASSERTION_ERROR. This has been fixed.
    540361
    140212
    Previously, a user defined Read attribute for a non-structured type resulted in a CONSTRAINT_ERROR. This problem has been fixed
    535417
    140216
    Documentation now covers mechanisms for saving scratch registers for all targets.
    540499
    140341
    An unclear error message, RTS Panic: Exception unwinding error...PC saved in __PANIC_EXCEPTION_PC, has been enhanced to print the contents of the PC.

    140635
    The problems with help windows not opening as expected has been fixed.
    541579
    141066
    The capability to move to and from special-purpose registers has been enhanced. A new intrinsic, Spr(id), takes an arbitrary value in the range 0..1023. Named constant values for the MP750 have also been added. See also defect 141104.
    141104
    140678
    Incorrectly constructed views have resulted in problems acquiring licenses. For example, using Copy_View to create an embedded view from a native view leaves inconsistent properties and policy/switches files. A license cannot be obtained. However, using the command: remodel -update -replace_switches . can update the files and the license becomes available.
    541598
    140806
    Register interference resulted from a problem in register allocation where it did not recognize implicit use of specified registers. This has been fixed.
    542307
    140968
    Using routines out of /lib/libc.a, for example nanosleep, clock_gettime, = clock_gettime, caused the linker to crash. This has been fixed.

    141244
    Testmate libraries inaccessible in 3.0.0 are now available.

    141245
    Incorrect float wrappers have been corrected.

    141246
    rts_vads_exec.ss was shipped as an API. The spec bodies have been restored and, as intended, users can now modify the wrappers.

    141247
    The incorrect interrupt exit code causing some tasking tests to fail has been fixed.

    141505
    The Apex_Dialog_Server process did not complete properly when initiated by Tools:Convert, Tools:Target Control, and Tools:Check Config. This problem has been fixed.
    543910

    Table 5 Defects Resolved in Release 3.0.0
    Defect

    Description

    Log Ref.


    For RH32 the documentation is unclear in describing the new BSP dialog, and the meaning and usage of various fields within it. This has bee fixed.
    523543

    Apex RH32 debugger does not correctly single step through return instruction. The problem occurs when single stepping through a function or procedure's source code. This has been fixed.
    531507
    531525

    127747
    The problem where the Ada object editor required a native license key even in a cross view has been fixed.

    128799
    The problem of internal compiler errors being generated because the compiler did not handle expressions in Priority, Interrupt_Priority, and Storage_Size pragmas which refer to discriminants of an enclosing task type has been fixed.
    521680
    128803
    The erroneous error message generated by the compiler referencing a procedure now correctly references a single protected object.
    521679
    129222
    The problem of the Profiler setting execute permission on files it creates has been fixed.

    130475
    The occurrence of the error, [GSK] Exception (PROGRAM_ERROR) caught in Code_Unit, when compiling into views set up for Ada95 has been fixed.
    524682
    130544
    The problem with pragma Interface in the body ada.real_time has been fixed.
    524694
    130740
    The problem with the Default destructor being incorrect for setconverters has been fixed.

    130777
    The problem where overflow check was not suppressed by Suppress(All_Checks) has been fixed. The central package now checks for global overflow suppression independent of type.

    131515
    The problem where the Apex compiler emitted an assertion error when Instantiating V_Xtasking.V_Id has been fixed.
    527484 533093
    131526
    The problem with V_I_Except.Exception_Name has been fixed.
    527646
    132929
    Type conversion to modular type did not raise a Constraint_error when the value is less than zero on some targets. This has been fixed.
    532047
    127192
    Machine code warnings (implicit code operand type mismatch) generated when compiling instantiations of provided generics have been eliminated.
    513831
    127869
    The disassembly format for PowerPC has been updated.
    519496 524282
    129157
    The problem of a second derivation of a tagged type if a `label' is used causing analyzing/coding PROGRAM ERROR has been fixed.
    522504
    129269
    The program error exception raised due to a missing pragma Elaborate has been fixed.
    522760
    130773
    The problem of "&&& [MID] coding failures when a representation clause is applied to a derived type which is, in turn, used as a component type in the declaration of some enclosing structured type has been fixed. This was an Ada95-specific problem involving streams.
    524777 527533
    131821
    The problem where the code generator incorrectly interprets range limits as signed quantities resulting in a constraint error has been fixed.
    528316
    132195
    For RH32, the debugger lt use command run on the target hardware does not accurately print stack or heap usage information. This has been fixed.

    128097
    (C++, MIPS) The problem of questionable code being generated by MIPS cg for float to int conversions has been fixed.

    129369
    (C++) Previous versions of Rational Exec required changes to the /etc/services file. Changing this file is not longer a requirement.
    522962


  • Rational Software Corporation 
    http://www.rational.com
    support@rational.com
    techpubs@rational.com
    Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
    TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS