Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-701
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Martin Bravenboer
Votes: 0
Watchers: 0
Operations

Clone this issue
If you were logged in you would be able to see more operations.
Stratego/XT
x86_64 support (STR-698)

strategy 'address' should not return an integer

Created: 2007-02-23 15:22   Updated: 2008-03-31 20:46
Component/s: stratego-lib - Stratego Library
Affects Version/s: 0.18M2 (Compiler Library)
Fix Version/s: 0.17

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
address casts a pointer ot an integer, which is not correct for 64 bits platforms. The ATerm library does provide an integer type that can handle the size of a pointer, so we need to represent an address in a different way. A blob (used for hashtables) is not very convenient in this case, since the result of the address strategy is typically used in output as well (blobs are not really printable).

So we will represent a pointer a a string. The current proposal is to use the %p feature of sprintf.

Note that this change does not affect the sorting of terms with address-lt, since the comparison is performed in native code there, which is perfectly ok.

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.