⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findaddr

📁 The main purpose of this project is to add a new scheduling algorithm to GeekOS and to implement a s
💻
字号:
#! /usr/bin/perl# Find the address of a symbol in the storage map.use strict qw(refs vars);use FileHandle;if ( scalar(@ARGV) != 2 ) {    print "Usage: findaddr <storage map> <symbol name>\n";    exit 1;}my $storage = shift @ARGV;my $symbol = shift @ARGV;my $fh = new FileHandle("<$storage");(defined $fh) || die "Couldn't open storage map: $!\n";while ( <$fh> ) {    if ( /^\s*(0x([0-9]|[a-f]|[A-F])+)\s+\Q$symbol\E\s*$/ ) {	print $1, "\n";	last;    }}$fh->close();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -