Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: visual C map file

Author: Dann Corbit

Date: 12:31:05 12/20/01

Go up one level in this thread


On December 20, 2001 at 04:23:03, martin fierz wrote:

>hi,
>
>i just found out that my compiler (MSVC 6) can generate a mapfile,
>which shows me which function it put where. so i can see if often used
>functions are close together in memory. however, all i can do is look...
>is there a way to instruct a compiler to group functions together?

Yes, there is.  Be careful of the name decorations if you build the file
yourself.

For instance, for ColChess 8, I can have this directive for the linker:
/ORDER:@collink.txt

And collink.txt contains this:

main
@get_pieces@4
@chck@8
@chkmte@20
@mppl@16
@mprl@16
@mpbl@20
@mpql@16
@mpnl@16
fprintf
fgets
fflush
free
memset
malloc
strcat
@load_ini_file@4
fopen
strcpy
getenv
puts
time
srand
@reset_board@0
@setup_precalculated_data@0
rand
@load_openings@0
setbuf
@free_opening@4
@bye@0
@perform_epd_test@20
@format_move@12
@same_move@12
strchr
@pts@8
@parseepd@28
@get_board_fen@4
@get_poslist@12
@print_board@4
@comp@20
@compiter@12
@progress@12
@do_move2@12
@setup_cd2@12
@copy_poslist@4
@free_poslist@4
@compare@8
@undo_move@12
@make_hash@16
@update_poslist@16
@find_hash@16
@revchck@24
@check_spaces@24
@sort_from@12
@quiesce@20
@is_drawn_game@8
@defsc@12
@tact_pawn@28
@backward_pawn@16
@passed_pawn@16
@friendly@16
@tact_rook@20
@freefile@12
@drive_away@16
@tact_king@20
@king_defence@16
@sdef_nchk@4
@tact_overall@8
@is_won_game@16
@tact_bishop@20
@tact_queen@20
@tact_knight@20
@no_pieces@4
@defsc_kpr@12
@tact_pawn_kpr@24
@passed_pawn_kp@16
@tact_pawn_kp@20
@tact_king_kpr@20
@tact_rook_kpr@16
@defsc_kpn@12
@tact_pawn_kpn@24
@tact_knight_kpn@20
@defsc_kpb@12
@tact_pawn_kpb@24
@tact_bishop_kpb@12
@defsc_kp@12
@file_free@16
@tact_king_kp@16
@gencapt@24
@mppl_capt@16
@mprl_capt@16
@kmvs2@16
@en_passant_possible@12
@mpbl_capt@20
@mpql_capt@16
@mpnl_capt@16
@mvs2@20
@mppl_qui@16
@mprl_qui@24
@mpbl_qui@28
@mpql_qui@24
@mpnl_qui@24
@setup_compdat@4
@analyse_all@20
@analyse@12
@give_direct_check@12
@direct_threat@12
@tact_general@8
@compare2@12
@free_compdat@4
@increase_counts@16
@mvs@32
@kmvs@16
@castleok@20
@isinposlist@12
@add_hash@40
@get_time@4
clock
@alter_hash@24
@printmove@4
@initialise@4
@print_time@8
@print_pv@4
@printmove2@4
fclose
?1memcpy
system
printf
strstr
scanf
strncpy
fscanf
@tact_pawn_opening@28
@vdef@8
@def@8
@ally@8
@free_table_element@4
realloc
@load_pgn_game@12
@load_game_string@4
@free_mvlst@4
@save_openings@4
@compare3@8
@check_opening_exists@24
strncat
@mpnc@16
@mppc@16
@mpbc@16
@mprc@16
@mpqc@16
@mpb@16
@mpr@16
@mpq@16
@mpn@12
@mpk@12
@quap@4
@mpkb@16
@mpqb@16
@mpbb@16
@mpnb@16
@mprb@16
@mppb@16
@mpkw@16
@mpqw@16
@mpbw@16
@mpnw@16
@mprw@16
@mppw@16
signal
@board_to_fen@16
@perform_self_test@4
@test_for_draw@16
@do_move@12
@choose_resign@12
@check_opening@20
@get_time_limit@20
@getparam@8
@annotate_game@12
@export_game@8
@import_pgn@0
@loadgame@0
@savegame@12
@sdef@8
@credits@0
@about@0
@help_analy@0
@help_comp@0
@help@0
@learn_opening@16
@test_check@16
@error@4
@add_move@40
@get_num_from_string@8
toupper
exit



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.